summaryrefslogtreecommitdiff
path: root/plugingui/image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/image.cc')
-rw-r--r--plugingui/image.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/image.cc b/plugingui/image.cc
index ecd16ac..52c5c9f 100644
--- a/plugingui/image.cc
+++ b/plugingui/image.cc
@@ -52,7 +52,7 @@ Image::~Image()
free(image_data);
}
-void Image::setError(int err)
+void Image::setError()
{
Resource rc(":png_error");
@@ -86,8 +86,8 @@ void Image::load(const char* data, size_t size)
if(res != 0)
{
- ERR(image, "[read_png_file] Error during init_io");
- setError(3);
+ ERR(image, "Error in lodepng_decode32: %d", res);
+ setError();
return;
}
}