Browse Source

Fixed incorrectly pasted error message.

David Piuva 3 years ago
parent
commit
c9520d7fcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/DFPSR/api/imageAPI.cpp

+ 1 - 1
Source/DFPSR/api/imageAPI.cpp

@@ -72,7 +72,7 @@ OrderedImageRgbaU8 dsr::image_load_RgbaU8(const String& filename, bool mustExist
 	if (buffer_exists(fileContent)) {
 	if (buffer_exists(fileContent)) {
 		result = image_decode_RgbaU8(fileContent);
 		result = image_decode_RgbaU8(fileContent);
 		if (mustExist && !image_exists(result)) {
 		if (mustExist && !image_exists(result)) {
-			throwError(U"buffer_save: Can't save a buffer that don't exist to a file.\n");
+			throwError(U"image_load_RgbaU8: Failed to load the image at ", filename, U".\n");
 		}
 		}
 	}
 	}
 	return result;
 	return result;