Throw an error, instead of a warning, if pre/post script fails

This commit is contained in:
Gilbert Chen
2019-11-24 22:38:29 -05:00
parent 165152493c
commit 694494ea54

View File

@@ -201,7 +201,7 @@ func runScript(context *cli.Context, storageName string, phase string) bool {
}
if err != nil {
duplicacy.LOG_WARN("SCRIPT_ERROR", "Failed to run script: %v", err)
duplicacy.LOG_ERROR("SCRIPT_ERROR", "Failed to run %s script: %v", script, err)
return false
}