[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6827] trunk/LedgerSMB/Template/DB.pm



Revision: 6827
          http://sourceforge.net/p/ledger-smb/code/6827
Author:   einhverfr
Date:     2014-02-10 10:01:12 +0000 (Mon, 10 Feb 2014)
Log Message:
-----------
Improved error handling when db template does not exist

Modified Paths:
--------------
    trunk/LedgerSMB/Template/DB.pm

Modified: trunk/LedgerSMB/Template/DB.pm
===================================================================
--- trunk/LedgerSMB/Template/DB.pm	2014-02-10 09:54:36 UTC (rev 6826)
+++ trunk/LedgerSMB/Template/DB.pm	2014-02-10 10:01:12 UTC (rev 6827)
@@ -6,7 +6,7 @@
 
 package LedgerSMB::Template::DB;
 use Moose;
-with 'LedgerSMB::DBObject_Moose';
+with 'LedgerSMB::DBObject_Moose', 'LedgerSMB::I18N';
 
 =head1 SYNPOPSIS
 
@@ -67,6 +67,7 @@
     );
     $temp = __PACKAGE__->new($temp);
     my $text = $temp->template;
+    die text('Could Not Load Template from DB');
     return \$text;
 }
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits