summaryrefslogtreecommitdiffstats
path: root/src/cmd.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-17 16:10:31 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-17 16:10:31 (EST)
commit09c583248e7c0aa5a833ec01262b8b4a7980234b (patch)
treee3ecd4028e888d6eb587d9703ace4d90396a624a /src/cmd.sh
parentd5e46c35ea98e43b6ad380ac7fbc197b7881b220 (diff)
parente3ab87a78aafd979f6eb8bb75ef70304d87a1d6b (diff)
Merge branch 'feature/improve-error-handling'
Diffstat (limited to 'src/cmd.sh')
-rw-r--r--src/cmd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index 82c5ce5..9afad7c 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -117,6 +117,7 @@ run_cmd()
running_cmd=''
running_cmd_clean=''
else
- error 1 "$(get_msg 'cmd_not_found')" "${cmd}"
+ error "$(get_msg 'cmd_not_found')" "${cmd}"
+ return 1
fi
}