From d8c2cb71367ac73d48ba3f5955f76a385874e0f9 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 28 Mar 2011 20:21:46 -0400 Subject: [PATCH] [#454] Popcorn.error() now reports error object instead of just error message --- popcorn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.43.0