Add missing file name to 'Input file is missing' error message (#3178)

This commit is contained in:
Chris Hranj
2022-04-05 06:35:01 -04:00
committed by GitHub
parent 5d36f5f699
commit 9deac83322
3 changed files with 4 additions and 3 deletions

View File

@@ -399,7 +399,7 @@ namespace sharp {
throw vips::VError("Input file is missing, did you mean "
"sharp(Buffer.from('" + descriptor->file.substr(0, 8) + "...')?");
}
throw vips::VError("Input file is missing");
throw vips::VError("Input file is missing: " + descriptor->file);
}
if (imageType != ImageType::UNKNOWN) {
try {