Commit 88f8564
Manus AI
fix: Handle both array and string error formats in register command
Fixed TypeError when API returns error messages as strings instead of arrays.
The error handling now properly handles both formats:
- Array: ['error message 1', 'error message 2']
- String: 'error message'
This prevents crashes when displaying validation errors from the API.1 parent d7e9e88 commit 88f8564
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
811 | | - | |
812 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
813 | 819 | | |
814 | 820 | | |
815 | 821 | | |
| |||
0 commit comments