summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuve <veg@svgames.pl>2022-12-29 23:32:40 +0100
committerRichard Hughes <richard@hughsie.com>2022-12-30 11:08:58 +0000
commit1e06d85c9f72c2f78daf92333ff7485a4b606706 (patch)
treee7efc776ec49a0516f927cd050a6abbeee27898e
parentb5d8a227e584fbb5627a81b4b1607234aabcf2dd (diff)
downloadappstream-glib-1e06d85c9f72c2f78daf92333ff7485a4b606706.tar.gz
Include screenshot size in "too large" errors
-rw-r--r--libappstream-glib/as-app-validate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index 6a69c23..bbcde2f 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -561,14 +561,14 @@ ai_app_validate_image_check (AsImage *im, AsAppValidateHelper *helper)
if (screenshot_width > ss_size_width_max) {
ai_app_validate_add (helper,
AS_PROBLEM_KIND_ATTRIBUTE_INVALID,
- "<screenshot> width too large [%s] maximum is %upx",
- url, ss_size_width_max);
+ "<screenshot> width (%u) too large [%s] maximum is %upx",
+ screenshot_width, url, ss_size_width_max);
}
if (screenshot_height > ss_size_height_max) {
ai_app_validate_add (helper,
AS_PROBLEM_KIND_ATTRIBUTE_INVALID,
- "<screenshot> height too large [%s] maximum is %upx",
- url, ss_size_height_max);
+ "<screenshot> height (%u) too large [%s] maximum is %upx",
+ screenshot_height, url, ss_size_height_max);
}
/* check padding */