]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#454] Popcorn.error() now reports error object instead of just error message
authorRick Waldron <waldron.rick@gmail.com>
Tue, 29 Mar 2011 00:21:46 +0000 (20:21 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Tue, 29 Mar 2011 00:21:46 +0000 (20:21 -0400)
popcorn.js

index 73df0f7dfdd37ed90ab9ae7b5f0d1278cf89ac99..8b064aafd63f849374e86052b5a82b156b96e42f 100644 (file)
   // 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++;