Fix error handling in JSON export

This commit is contained in:
Martchus 2018-01-20 00:59:50 +01:00
parent ae85f123f8
commit e3e9e40682
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ TagValue::TagValue(const Media::TagValue &tagValue, RAPIDJSON_NAMESPACE::Documen
value.SetNull();
}
} catch (const ConversionUtilities::ConversionException &e) {
ReflectiveRapidJSON::JsonReflector::push(e.what(), value, allocator);
ReflectiveRapidJSON::JsonReflector::push(string(e.what()), value, allocator);
kind = "error";
}
}