Skip to content
Snippets Groups Projects
Commit eb603466 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Change log level of "already exists" log messages from ERROR to WARNING

Fix issue #773
parent e1ac8374
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6550 passed
......@@ -205,10 +205,10 @@ function process_tic(tic)
// TODO: optionally delete replaced files even if it's not an overwrite
if (file_exists(path+tic.file) && !force_replace && !force_replace_area) {
if (typeof tic.replaces == 'undefined') {
log(LOG_ERROR, format('"%s" already exists in "%s", but has no matching Replaces line', tic.file, path));
log(LOG_WARNING, format('"%s" already exists in "%s", but has no matching Replaces line', tic.file, path));
return false;
} else if (!wildmatch(tic.file, tic.replaces)) {
log(LOG_ERROR, format('"%s" already exists in "%s", but TIC Replaces line is "%s"', tic.file, path, tic.replaces));
log(LOG_WARNING, format('"%s" already exists in "%s", but TIC Replaces line is "%s"', tic.file, path, tic.replaces));
return false;
} else {
if (!do_move(path, tic)) return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment