diff --git a/popcorn.js b/popcorn.js index 73df0f7df..8b064aafd 100644 --- a/popcorn.js +++ b/popcorn.js @@ -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++;