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:
Michael Helvey
2016-10-30 08:58:34 -07:00
committed by Florent Vilmart
parent 4a2f7ff2db
commit 94178df4d2
2 changed files with 2 additions and 2 deletions

View File

@@ -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();
});
});