Skip to content

Commit

Permalink
Improve error message when trying to assign attachments to format not…
Browse files Browse the repository at this point in the history
… supporting it

See #74
  • Loading branch information
Martchus committed Sep 24, 2021
1 parent 8496cc0 commit 43ebafe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(META_GUI_OPTIONAL true)
set(META_JS_SRC_DIR renamingutility)
set(META_VERSION_MAJOR 3)
set(META_VERSION_MINOR 5)
set(META_VERSION_PATCH 0)
set(META_VERSION_PATCH 1)
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)

# add project files
Expand Down
3 changes: 3 additions & 0 deletions cli/mainfeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,9 @@ void setTagInfo(const SetTagInfoArgs &args)
}
attachmentsModified |= currentInfo.next(container, diag);
}
} else if (fileInfo.attachmentsParsingStatus() == ParsingStatus::NotSupported) {
diag.emplace_back(
DiagLevel::Critical, "Unable to assign attachments because that is not supported for the file's format.", attachmentsContext);
} else {
diag.emplace_back(DiagLevel::Critical, "Unable to assign attachments because the container object has not been initialized.",
attachmentsContext);
Expand Down

0 comments on commit 43ebafe

Please sign in to comment.