From 09c583248e7c0aa5a833ec01262b8b4a7980234b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Jan 2016 16:10:31 -0500 Subject: Merge branch 'feature/improve-error-handling' --- (limited to 'src/profile.sh') diff --git a/src/profile.sh b/src/profile.sh index 44e3022..d5ffe1e 100644 --- a/src/profile.sh +++ b/src/profile.sh @@ -44,7 +44,8 @@ profile_set() if is_profile "${prof}"; then profile="${prof}" else - error 1 "$(get_msg 'profile_not_found')" "${prof}" + error "$(get_msg 'profile_not_found')" "${prof}" + return 1 fi return 0 @@ -61,7 +62,8 @@ profile_detect() fi done - error 1 "$(get_msg 'profile_not_detected')" "${root}" + error "$(get_msg 'profile_not_detected')" "${root}" + return 1 } profile_normalize_suite() -- cgit v0.9.1