You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gobblin.apache.org by sh...@apache.org on 2020/01/11 02:15:48 UTC

[incubator-gobblin] branch master updated: [GOBBLIN-1014] Fix error handling in gobblin.sh

This is an automated email from the ASF dual-hosted git repository.

shirshanka pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-gobblin.git


The following commit(s) were added to refs/heads/master by this push:
     new 64b0741  [GOBBLIN-1014] Fix error handling in gobblin.sh
64b0741 is described below

commit 64b074182a7bea017a249204c5448ee79a0a28ac
Author: Alex Prokofiev <ap...@linkedin.com>
AuthorDate: Fri Jan 10 18:15:13 2020 -0800

    [GOBBLIN-1014] Fix error handling in gobblin.sh
    
    This script was missing the "die" function that is
    used for error handling.
    
    Closes #2858 from aplex/fix-gobblin-sh-error-
    handling
---
 bin/gobblin.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/gobblin.sh b/bin/gobblin.sh
index 8e90683..968106a 100755
--- a/bin/gobblin.sh
+++ b/bin/gobblin.sh
@@ -149,6 +149,11 @@ function print_help_n_exit() {
     exit 1;
 }
 
+function die() {
+  echo -e "\nError: $@\n" 1>&2
+  exit 1
+}
+
 # TODO: use getopts
 shopt -s nocasematch
 for i in "$@"