summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-04-13 10:31:35 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-04-13 10:31:35 (GMT)
commit48302ff95c18a67c55fcce6ccf13e273054791f0 (patch)
tree86f802852492c0de1c1d4e4f1e288cf61bb69406
parent9320db8b5813d48c3555424603d0bc17e089a7c0 (diff)
small cleanups
-rw-r--r--rhimport.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/rhimport.pm b/rhimport.pm
index d33640d..48b5b17 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -118,7 +118,6 @@ sub clear_carts
my $sth = $dbh->prepare($sql);
$sth->execute();
while(my $cut_name = $sth->fetchrow_array()) {
-## TODO: Error handling would be nice!
delete_file("/var/snd/$cut_name.wav");
}
$sth->finish();
@@ -162,7 +161,7 @@ sub import_playlist
my $out;
($ret, $out) = import_file($entry, $dropbox, $error_cb);
- $log .= "\n--- $entry ---\n$out\n";
+ $log .= "\n--- $entry ---\n$out\n" if $out;
last if($ret == 0);
$cnt++;