summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-07-20 20:10:39 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-07-20 20:10:39 (GMT)
commit00859e41d0cfa0aef3c4e582f533d18062ae32c7 (patch)
treeea2ee224a8354c495e3234ea68a236743c1fa166
parentc0a16bb0c892df905ed7d1f277e08acb958035ae (diff)
added import log to output on error
disabled used carts window
-rwxr-xr-xrhimport18
-rwxr-xr-xrhimport-dn4
2 files changed, 12 insertions, 10 deletions
diff --git a/rhimport b/rhimport
index b3f0c20..1978aa1 100755
--- a/rhimport
+++ b/rhimport
@@ -337,15 +337,15 @@ sub show_used_carts_gui()
$l_status->set_label("Carts: $low_cart - $high_cart");
}
- my $usedcartswin = Gtk2::Window->new();
- $usedcartswin or die "can't open new window";
- $usedcartswin->resize(640,480);
- if($low_cart eq $high_cart) {
- $usedcartswin->set_title("Cart: $low_cart");
- } else {
- $usedcartswin->set_title("Carts: $low_cart - $high_cart");
- }
- $usedcartswin->show;
+ # my $usedcartswin = Gtk2::Window->new();
+ # $usedcartswin or die "can't open new window";
+ # $usedcartswin->resize(640,480);
+ # if($low_cart eq $high_cart) {
+ # $usedcartswin->set_title("Cart: $low_cart");
+ # } else {
+ # $usedcartswin->set_title("Carts: $low_cart - $high_cart");
+ # }
+ # $usedcartswin->show;
}
sub clear_status_gui()
diff --git a/rhimport-dn b/rhimport-dn
index ef2f4db..32d5bf3 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -94,7 +94,7 @@ for my $entry ($feed->entries) {
print "summary:\n" . $summary;
}
- print "\n\n\n";
+ print "\n";
}
}
($file ne "") or die "No Entry found for today!\n";
@@ -123,6 +123,8 @@ $dbh->disconnect();
unlink $file;
if(!$ret) {
+ print "\nImport Error:\n"
+ print $log;
exit 1;
}