Print additional infos about errors to std_out.

This commit is contained in:
2019-06-09 17:08:15 +02:00
parent 7013d8644f
commit ef5848f4ea
8 changed files with 105 additions and 14 deletions

View File

@@ -212,6 +212,7 @@ if $MIRROR ;then
if [ "$retval" = "24" ]; then
echolog "\t[ Notice ] \"$real_backupSrcDir\": \n\t`$cat $err_Log`\n"
else
print_error_stdout "Cannot mirror directory \"$real_backupSrcDir\"\n $(cat "$err_Log")"
echolog "\t[ERROR] Cannot mirror directory \"$real_backupSrcDir\" [ $duration ]\n\t`$cat $err_Log`\n"
fi
else