From: ivan Date: Thu, 25 Oct 2007 08:29:34 +0000 (+0000) Subject: fix error handling X-Git-Tag: TRIXBOX_2_6~265 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=ebf5ce9df0ea2026ab44f5dd80341dd06c68970d fix error handling --- diff --git a/FS/bin/freeside-setup b/FS/bin/freeside-setup index 188a1867a..7ea1025eb 100755 --- a/FS/bin/freeside-setup +++ b/FS/bin/freeside-setup @@ -125,7 +125,7 @@ $FS::UID::callback_hack = 0; if (!scalar(qsearch('conf', {}))) { my $error = FS::Conf::init_config($config_dir); if ($error) { - dbh->rollback or die dbh->errstr; + $dbh->rollback or die $dbh->errstr; die $error; } }