[998] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r985 - trunk/owl/perl/lib/BarnOwl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:59 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Tue, 11 Mar 2008 12:38:21 -0400 (EDT)

Author: nelhage
Date: 2008-03-11 12:38:20 -0400 (Tue, 11 Mar 2008)
New Revision: 985

Modified:
   trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm
Log:
Generate less ugly error spew if a module fails to load


Modified: trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm
===================================================================
--- trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm	2008-03-07 02:09:23 UTC (rev 984)
+++ trunk/owl/perl/lib/BarnOwl/ModuleLoader.pm	2008-03-11 16:38:20 UTC (rev 985)
@@ -39,7 +39,7 @@
     for my $class (keys %modules) {
         if(!defined eval "use BarnOwl::Module::$class") {
             # BarnOwl::error("Unable to load module $class: $!") if $!;
-            BarnOwl::error("Unable to load module $class: $@") if $@;
+            BarnOwl::error("Unable to load module $class: \n$@\n") if $@;
         }
     }
 


home help back first fref pref prev next nref lref last post