Update error message
This commit is contained in:
@@ -21,7 +21,7 @@ function updateGlobalConfig(req) {
|
|||||||
.catch(() => ({
|
.catch(() => ({
|
||||||
status: 404,
|
status: 404,
|
||||||
response: {
|
response: {
|
||||||
code: 103,
|
code: Parse.Error.INVALID_KEY_NAME,
|
||||||
error: 'config cannot be updated',
|
error: 'config cannot be updated',
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
@@ -34,7 +34,7 @@ function getGlobalConfig(req) {
|
|||||||
.catch(() => ({
|
.catch(() => ({
|
||||||
status: 404,
|
status: 404,
|
||||||
response: {
|
response: {
|
||||||
code: 103,
|
code: Parse.Error.INVALID_KEY_NAME,
|
||||||
error: 'config does not exist',
|
error: 'config does not exist',
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user