summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2016-01-03 11:09:15 +0100
committerDees Troy <dees_troy@teamw.in>2016-01-04 14:13:40 +0100
commitf1408b3c0f9e45b4d080a9bd0c1e479c2067e872 (patch)
treeeb6b26055d7d6ab30b6463d10fed80c863435105 /openrecoveryscript.cpp
parentgui: PatternPassword: allow any N*N grid (diff)
downloadandroid_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.tar
android_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.tar.gz
android_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.tar.bz2
android_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.tar.lz
android_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.tar.xz
android_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.tar.zst
android_bootable_recovery-f1408b3c0f9e45b4d080a9bd0c1e479c2067e872.zip
Diffstat (limited to '')
-rw-r--r--openrecoveryscript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index 30c03b160..eee64ff89 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -323,8 +323,8 @@ int OpenRecoveryScript::run_script_file(void) {
// Make directory (recursive)
DataManager::SetValue("tw_action_text2", gui_parse_text("{@making_dir1}"));
gui_msg(Msg("making_dir2=Making directory: '{1}'")(value));
- if (TWFunc::Recursive_Mkdir(value)) {
- gui_msg(Msg(msg::kError, "create_folder_strerr=Can not create '{1}' folder ({2}).")(value)(strerror(errno)));
+ if (!TWFunc::Recursive_Mkdir(value)) {
+ // error message already displayed by Recursive_Mkdir
ret_val = 1;
}
} else if (strcmp(command, "reboot") == 0) {