From: Rick Waldron Date: Tue, 29 Mar 2011 00:21:46 +0000 (-0400) Subject: [#454] Popcorn.error() now reports error object instead of just error message X-Git-Tag: v0.5~13^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d8c2cb71367ac73d48ba3f5955f76a385874e0f9;p=popcorn-js.git [#454] Popcorn.error() now reports error object instead of just error message --- diff --git a/popcorn.js b/popcorn.js index 73df0f7..8b064aa 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++;