icon-validator: Add the max size to the error

This helps to explain why an icon was rejected.

Closes: #2813
Approved by: alexlarsson
This commit is contained in:
Matthias Clasen
2019-04-09 19:57:00 -04:00
committed by Atomic Bot
parent d85b3cb0e9
commit 11aface66e

View File

@@ -73,7 +73,7 @@ validate_icon (const char *arg_width,
if (width > max_width || height > max_height)
{
g_printerr ("Image too large (%dx%d)\n", width, height);
g_printerr ("Image too large (%dx%d). Max. size %dx%d\n", width, height, max_width, max_height);
return 1;
}