mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 16:15:54 +08:00
Modify error message.
This commit is contained in:
parent
8e2c24fb92
commit
ba28ddcc9e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user