Skip to content

Commit b543819

Browse files
committed
fix: improve some error messages
1 parent e3501f0 commit b543819

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Code.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,13 +1004,13 @@ function fetchJSON(endpoint, tenantId, token) {
10041004
break;
10051005
case 401:
10061006
case 403:
1007-
quit('Stopped due to a permissions error',
1008-
'A FOLIO authentication error occurred. This can be' +
1009-
' due to an invalid FOLIO URL, tenant ID, or token,' +
1007+
quit('Stopped due to an authentication error',
1008+
'The FOLIO server rejected the request. This can be' +
1009+
' due to an invalid token, FOLIO URL, or tenant ID,' +
10101010
' or if the user account lacks FOLIO permissions to' +
10111011
' perform the action requested. To fix this, try to' +
1012-
' reset the FOLIO credentials (using the Boffo menu' +
1013-
' option for that). If this error persists, please' +
1012+
' set the FOLIO user credentials via the Boffo menu' +
1013+
' option for that. If this error persists, please' +
10141014
' contact your FOLIO administrator for assistance.');
10151015
break;
10161016
case 404:
@@ -1024,11 +1024,11 @@ function fetchJSON(endpoint, tenantId, token) {
10241024
case 409:
10251025
case 500:
10261026
case 501:
1027-
quit('Stopped due to a server error',
1028-
'FOLIO turned an internal server error. This may be due' +
1029-
' to a temporary problem with FOLIO itself. Please wait' +
1030-
' a moment, then retry the same operation. If the error' +
1031-
' persists, please report it to the developers.' +
1027+
quit('Stopped due to a FOLIO server error',
1028+
'This may be due to a temporary network problem or a' +
1029+
' temporary problem with the FOLIO server. Please wait' +
1030+
' for a few seconds, then retry the same operation. If' +
1031+
' the error persists, please report it to the developers.' +
10321032
` (Error code ${httpCode}.)`);
10331033
break;
10341034
default:

0 commit comments

Comments
 (0)