Skip to content

Commit

Permalink
[mozilla#454] Popcorn.error() now reports error object instead of jus…
Browse files Browse the repository at this point in the history
…t error message
  • Loading branch information
rwaldron committed Mar 29, 2011
1 parent d060d5a commit d8c2cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popcorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
// A Few reusable utils, memoized onto Popcorn
Popcorn.extend( Popcorn, {
error: function( msg ) {
throw msg;
throw new Error( msg );
},
guid: function( prefix ) {
Popcorn.guid.counter++;
Expand Down

0 comments on commit d8c2cb7

Please sign in to comment.