Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(client): Throw an exception if invokeHandler is passed an invalid…
Browse files Browse the repository at this point in the history
… handler.

* This will help devs catch errors faster.

fixes #1105
  • Loading branch information
Shane Tomlinson committed Jun 19, 2014
1 parent a13a8eb commit 0f58af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/views/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function (_, Backbone, $, p, Session, AuthErrors, FxaClient, Url, Strings, Ephem
handler = this[handler];

if (typeof handler !== 'function') {
console.warn(handler + ' is an invalid function name');
throw new Error(handler + ' is an invalid function name');
}
}

Expand Down

0 comments on commit 0f58af4

Please sign in to comment.