Add the tag type the "not supported for" message refers to

This commit is contained in:
Martchus 2023-05-03 21:09:36 +02:00
parent a18d268ea1
commit a6231b8442
1 changed files with 3 additions and 1 deletions

View File

@ -789,7 +789,9 @@ void setTagInfo(const SetTagInfoArgs &args)
&& !denotedScope.field.setValues(tag, tagType, convertedValues)
&& (tagType != TagType::Id3v1Tag || !willWriteAnId3v2Tag)) {
diag.emplace_back(DiagLevel::Critical,
argsToString("Unable set field \"", denotedScope.field.name(), "\": setting field is not supported"), context);
argsToString(
"Unable set field \"", denotedScope.field.name(), "\": field is not supported for ", tag->typeName()),
context);
}
} catch (const ConversionException &e) {
diag.emplace_back(DiagLevel::Critical,