summaryrefslogtreecommitdiff
path: root/bin/byteback-restore
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-08-11 15:49:33 +0300
committerSteve Kemp <steve@steve.org.uk>2015-08-11 15:49:33 +0300
commita36db66f5db8705326e8c6899451c5fe94051edf (patch)
tree162cc5e8f4bf7b143d520e68018fb1853b6cedb3 /bin/byteback-restore
parentbdacdf3791ed180a0aaff276eacb518d4dacf990 (diff)
Updated the fatal-error handling.
Now we use the utility classes we have to log errors to syslog.
Diffstat (limited to 'bin/byteback-restore')
-rwxr-xr-xbin/byteback-restore12
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/byteback-restore b/bin/byteback-restore
index 2341502..7ac47dd 100755
--- a/bin/byteback-restore
+++ b/bin/byteback-restore
@@ -7,14 +7,12 @@ $LOAD_PATH.unshift('/usr/lib/byteback')
$LOAD_PATH.unshift('./lib/')
require 'trollop'
+require 'byteback/util'
+require 'byteback/log'
+include Byteback::Util
+include Byteback::Log
+
-#
-# Show an error message and abort.
-#
-def fatal(str)
- STDERR.puts(str)
- exit(1)
-end
#
# Run a remote command.