cli: Gather notifications also in the error case

This commit is contained in:
Martchus 2018-02-20 21:36:15 +01:00
parent 6280e67e3a
commit 5320ef0660
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ set(META_GUI_OPTIONAL true)
set(META_JS_SRC_DIR renamingutility)
set(META_VERSION_MAJOR 2)
set(META_VERSION_MINOR 3)
set(META_VERSION_PATCH 3)
set(META_VERSION_PATCH 4)
set(META_NO_TIDY ON)
# add project files

View File

@ -689,7 +689,6 @@ void setTagInfo(const SetTagInfoArgs &args)
// apply changes and gather notifications
fileInfo.applyChanges();
fileInfo.gatherRelatedNotifications(notifications);
// notify about completion
finalizeLog();
@ -711,6 +710,7 @@ void setTagInfo(const SetTagInfoArgs &args)
cerr << " - " << Phrases::Error << "An IO failure occured when reading/writing the file \"" << file << "\"." << Phrases::EndFlush;
}
fileInfo.gatherRelatedNotifications(notifications);
printNotifications(notifications, "Notifications:", args.verboseArg.isPresent());
// continue with next file