File tree Expand file tree Collapse file tree 5 files changed +21008
-3
lines changed
Expand file tree Collapse file tree 5 files changed +21008
-3
lines changed Original file line number Diff line number Diff line change 44Dockerfile *
55* ~
66screenshots
7+ ** /node_modules
8+ ** /.temp
9+ ** /__pycache__
Original file line number Diff line number Diff line change @@ -218,7 +218,6 @@ yarn-error.log
218218
219219/coverage
220220.idea
221- yarn.lock
222221package-lock.json
223222* bak
224223.vscode
Original file line number Diff line number Diff line change 106106 "check-prettier" : " ^1.0.1" ,
107107 "cross-env" : " ^5.2.0" ,
108108 "cross-port-killer" : " ^1.0.1" ,
109- "enzyme" : " ^3.9.0" ,
110109 "eslint" : " ^8.53.0" ,
111110 "eslint-config-airbnb" : " ^19.0.4" ,
112111 "eslint-config-prettier" : " ^9.0.0" ,
Original file line number Diff line number Diff line change @@ -81,9 +81,19 @@ const errorHandler = error => {
8181 defaultMessage : 'An error occurred while processing your request.' ,
8282 } ) ;
8383
84+ const safeDetailMessage = ( obj => {
85+ if ( typeof obj === 'string' ) {
86+ return obj ;
87+ }
88+ if ( typeof obj === 'object' ) {
89+ return JSON . stringify ( obj ) ;
90+ }
91+ return String ( obj ) ;
92+ } ) ( detailMessage ) ;
93+
8494 notification . error ( {
8595 message : errorMessage ,
86- description : ` ${ url } \n ${ detailMessage } ` ,
96+ description : safeDetailMessage ,
8797 } ) ;
8898
8999 // Handle navigation for specific error codes
You can’t perform that action at this time.
0 commit comments