[553] in BarnOwl Developers
[D-O-H] r670 - / branches/par/perl/lib/BarnOwl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:07:21 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Sun, 18 Mar 2007 16:28:24 -0400 (EDT)
Author: nelhage
Date: 2007-03-18 16:28:23 -0400 (Sun, 18 Mar 2007)
New Revision: 670
Modified:
/
branches/par/perl/lib/BarnOwl/ModuleLoader.pm
Log:
r20282@phanatique: nelhage | 2007-03-17 14:48:22 -0400
Report more errors when something goes wrong
Property changes on:
___________________________________________________________________
Name: svk:merge
- 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:24493
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/barnowl:20279
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h:18636
+ 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:24493
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/barnowl:20282
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h:18636
Modified: branches/par/perl/lib/BarnOwl/ModuleLoader.pm
===================================================================
--- branches/par/perl/lib/BarnOwl/ModuleLoader.pm 2007-03-17 18:48:02 UTC (rev 669)
+++ branches/par/perl/lib/BarnOwl/ModuleLoader.pm 2007-03-18 20:28:23 UTC (rev 670)
@@ -22,7 +22,8 @@
}
}
for my $class (keys %modules) {
- if(defined eval "use BarnOwl::Module::$class") {
+ if(!defined eval "use BarnOwl::Module::$class") {
+ BarnOwl::error("Unable to load module $class: $!") if $!;
BarnOwl::error("Unable to load module $class: $@") if $@;
}
}