summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-06-23 18:24:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-06-23 18:24:17 +0200
commitf734fa35b4a14b9091632aa305b7fcceed7c4c57 (patch)
tree7c49a39f2d9e8119a1915076ec74324b03614f8b /bin
parent616d793d710df2a18e9ef89dbe1b6e56e1c1c5d5 (diff)
Do not error out if only partial data is available (closes #4)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-iris9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/db-iris b/bin/db-iris
index f1bff19..38e30cd 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -259,12 +259,19 @@ if ( my $err = $status->errstr ) {
say STDERR "Request error: ${err}";
exit 2;
}
+if ( my $warning = $status->warnstr ) {
+ say STDERR "Request warning: ${warning}";
+}
if ( $status_via and $status_via->errstr ) {
my $err = $status_via->errstr;
- say STDERR "Request error: ${err}";
+ say STDERR "Request error in --via : ${err}";
exit 2;
}
+if ( $status_via and $status_via->warnstr ) {
+ my $warning = $status_via->warnstr;
+ say STDERR "Request warning in --via : ${warning}";
+}
sanitize_options();