diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-08-11 15:49:33 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-08-11 15:49:33 +0300 |
commit | a36db66f5db8705326e8c6899451c5fe94051edf (patch) | |
tree | 162cc5e8f4bf7b143d520e68018fb1853b6cedb3 | |
parent | bdacdf3791ed180a0aaff276eacb518d4dacf990 (diff) |
Updated the fatal-error handling.
Now we use the utility classes we have to log errors to syslog.
-rwxr-xr-x | bin/byteback-restore | 12 |
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. |