Add functionName to invalid function error (#2963)
Currently in the logs if an invalid function is called the error message just says "invalid function" which is decidedly unhelpful when looking through server logs. Now it will say "Invalid function: "functionName""
This commit is contained in:
committed by
Florent Vilmart
parent
4a2f7ff2db
commit
94178df4d2
@@ -1129,7 +1129,7 @@ it('ensure that if you try to sign up a user with a unique username and email, b
|
||||
done();
|
||||
}, (e) => {
|
||||
expect(e.code).toEqual(Parse.Error.SCRIPT_FAILED);
|
||||
expect(e.message).toEqual('Invalid function.');
|
||||
expect(e.message).toEqual('Invalid function: "somethingThatDoesDefinitelyNotExist"');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user