[Rt-commit] r8010 - in rt/branches/3.6-RELEASE: .
falcone at bestpractical.com
falcone at bestpractical.com
Thu Jun 14 18:12:42 EDT 2007
Author: falcone
Date: Thu Jun 14 18:12:42 2007
New Revision: 8010
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/sbin/rt-setup-database.in
Log:
r21978 at ketch: falcone | 2007-06-14 18:12:25 -0400
* be more chatty about errors so you can figure out your initialdata mistakes
Modified: rt/branches/3.6-RELEASE/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.6-RELEASE/sbin/rt-setup-database.in (original)
+++ rt/branches/3.6-RELEASE/sbin/rt-setup-database.in Thu Jun 14 18:12:42 2007
@@ -580,7 +580,11 @@
for $item (@ScripActions) {
my $new_entry = RT::ScripAction->new($CurrentUser);
- my $return = $new_entry->Create(%$item);
+ my ($return,$msg) = $new_entry->Create(%$item);
+ unless ($return) {
+ print "(Error: $msg)\n";
+ exit;
+ }
print $return. ".";
}
@@ -592,7 +596,11 @@
for $item (@ScripConditions) {
my $new_entry = RT::ScripCondition->new($CurrentUser);
- my $return = $new_entry->Create(%$item);
+ my ($return,$msg) = $new_entry->Create(%$item);
+ unless ($return) {
+ print "(Error: $msg)\n";
+ exit;
+ }
print $return. ".";
}
More information about the Rt-commit
mailing list