Skip to content

Commit d6facf7

Browse files
committed
Fix deploy error handling
1 parent 6ce9544 commit d6facf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/app/src/app/overmind/internalActions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ export const getErrorMessage: Action<{ error: ApiError | Error }, string> = (
376376
return errors; // eslint-disable-line no-param-reassign
377377
}
378378
} else if (result.error) {
379+
if (result.error.message) {
380+
return result.error.message;
381+
}
382+
379383
return result.error; // eslint-disable-line no-param-reassign
380384
} else if (response?.status === 413) {
381385
return 'File too large, upload limit is 5MB.';

0 commit comments

Comments
 (0)