mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-05 04:48:53 +00:00
Modify error message.
This commit is contained in:
@@ -1689,7 +1689,7 @@ static bool ParseImage(Image *image, std::string *err, const json &o,
|
||||
if (hasBufferView) {
|
||||
if (!ParseNumberProperty(&bufferView, err, o, "bufferView", true)) {
|
||||
if (err) {
|
||||
(*err) += "Invalid `bufferView` definition for Image.\n";
|
||||
(*err) += "Failed to parse `bufferView` for Image.\n";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -1718,7 +1718,7 @@ static bool ParseImage(Image *image, std::string *err, const json &o,
|
||||
if (hasURI) {
|
||||
if (!ParseStringProperty(&uri, &tmp_err, o, "uri", true)) {
|
||||
if (err) {
|
||||
(*err) += "`bufferView` or `uri` required for Image.\n";
|
||||
(*err) += "Failed to parse `uri` for Image.\n";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user