[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-commit
Subject: [Rt-commit] r19386 - in rt/3.8/trunk: .
From: sartak () bestpractical ! com
Date: 2009-04-30 21:37:16
Message-ID: 20090430213716.AD6F74DD02E () diesel ! bestpractical ! com
[Download RAW message or body]
Author: sartak
Date: Thu Apr 30 17:37:16 2009
New Revision: 19386
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/bin/rt-crontool.in
Log:
r82603@onn: sartak | 2009-04-30 17:37:07 -0400
Throw an error if the template the user provided cannot be loaded
Modified: rt/3.8/trunk/bin/rt-crontool.in
==============================================================================
--- rt/3.8/trunk/bin/rt-crontool.in (original)
+++ rt/3.8/trunk/bin/rt-crontool.in Thu Apr 30 17:37:16 2009
@@ -130,7 +130,8 @@
my $template_obj;
if ($template_id) {
$template_obj = RT::Template->new($CurrentUser);
- $template_obj->Load($template_id);
+ my ($ok, $msg) = $template_obj->Load($template_id);
+ die "Failed to load template '$template_id': $msg" if !$ok;
}
my $void_scrip = RT::Scrip->new( $CurrentUser );
my $void_scrip_action = RT::ScripAction->new( $CurrentUser );
_______________________________________________
Rt-commit mailing list
Rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic