summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 14:01:06 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 14:01:32 +0200
commit124f304b7d133ecc5969b9063e5b026368403351 (patch)
treee0eced97a075527f097d73c172b6363ab74150f2
parentb1cd0de7d4a13776f8316684844642ade2ea0349 (diff)
downloadApp-BorgRestore-124f304b7d133ecc5969b9063e5b026368403351.tar.gz
App-BorgRestore-124f304b7d133ecc5969b9063e5b026368403351.tar.xz
Standardize error level for functions in main package
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--lib/App/BorgRestore.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index d5901c1..18f6d8a 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -113,8 +113,8 @@ sub resolve_relative_path {
my $abs_path = abs_path($canon_path);
if (!defined($abs_path)) {
- $log->fatalf("Failed to resolve path to absolute path: %s: %s", $canon_path, $!);
- $log->fatal("Make sure that all parts of the path, except the last one, exist.");
+ $log->errorf("Failed to resolve path to absolute path: %s: %s", $canon_path, $!);
+ $log->error("Make sure that all parts of the path, except the last one, exist.");
croak "Path resolving failed";
}
@@ -157,7 +157,7 @@ sub find_archives {
}
if (!@ret) {
- $log->warningf("Path '%s' not found in any archive.\n", $path);
+ $log->errorf("Path '%s' not found in any archive.\n", $path);
croak "Failed to find archives for path";
}