Skip to content

Commit 29adffc

Browse files
committed
fixed inconsistent error messages
1 parent 4887bf1 commit 29adffc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Routers/FilesRouter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class FilesRouter {
100100
next(
101101
new Parse.Error(
102102
Parse.Error.FILE_SAVE_ERROR,
103-
'File upload by anonymous user is not allowed.'
103+
'File upload by anonymous user is disabled.'
104104
)
105105
);
106106
return;
@@ -109,13 +109,13 @@ export class FilesRouter {
109109
next(
110110
new Parse.Error(
111111
Parse.Error.FILE_SAVE_ERROR,
112-
'File upload by authenticated users is not enabled.'
112+
'File upload by authenticated user is disabled.'
113113
)
114114
);
115115
return;
116116
}
117117
if (!config.fileUpload.enableForPublic && !user) {
118-
next(new Parse.Error(Parse.Error.FILE_SAVE_ERROR, 'File upload by public is not enabled.'));
118+
next(new Parse.Error(Parse.Error.FILE_SAVE_ERROR, 'File upload by public is disabled.'));
119119
return;
120120
}
121121
const filesController = config.filesController;

0 commit comments

Comments
 (0)