Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: src/scripts/common.sh

Issue 1211001: Update enter_chroot.sh to exit with error messages when mount/unmount fails. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/scripts/enter_chroot.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/common.sh
diff --git a/src/scripts/common.sh b/src/scripts/common.sh
index f869b58e64c3893b0592f5ef03c66e10a0a47318..13888e37b35f46f35c2752d1ad6837028aa9dd2f 100644
--- a/src/scripts/common.sh
+++ b/src/scripts/common.sh
@@ -288,3 +288,8 @@ function warn {
function error {
echo -e "${V_RED}Error....: $1${V_VIDOFF}"
}
+
+function die {
+ error "$1"
+ exit 1
+}
« no previous file with comments | « no previous file | src/scripts/enter_chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698