summaryrefslogtreecommitdiff
path: root/rhimport-wl
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-01-25 15:11:49 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-01-25 15:11:49 (GMT)
commitf5bc1e132e486c7d4df3b82a3de681b195f4ec1f (patch)
tree8dfec2c90e39fea3254e3f799a7aaa8afae3efde /rhimport-wl
parentc944e764868f7507cf8e22e262035cf7d9bd8df5 (diff)
improved output at non-fitting dropbox
Diffstat (limited to 'rhimport-wl')
-rwxr-xr-xrhimport-wl4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhimport-wl b/rhimport-wl
index 492460d..ddfc63e 100755
--- a/rhimport-wl
+++ b/rhimport-wl
@@ -56,9 +56,9 @@ my $dbh = DBI->connect("DBI:mysql:$DB:$DBHOST","$DBUSER","$DBPW") or die "Databa
my @allowed_dbs = rhimport::get_dropboxes($dbh, $user, $group);
if(scalar(@allowed_dbs) != 1) {
- print "found multiple Dropboxes for this group?!\n";
+ print "found multiple or no Dropboxes for this group?!\n";
$dbh->disconnect();
- exit 0;
+ exit 1;
}
my $dropbox = $allowed_dbs[0]->{'PATH'};
my $to_cart = $allowed_dbs[0]->{'TO_CART'};