From 90aa55599d8b35b5f06e54ebc5f754000af1a0c3 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 31 Jan 2023 17:56:32 +0100 Subject: [PATCH] Output checksums if ynh_setup_source fails during their verification. --- helpers/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/utils b/helpers/utils index 344493ff3..52ff245c8 100644 --- a/helpers/utils +++ b/helpers/utils @@ -167,7 +167,7 @@ ynh_setup_source() { || ynh_die --message="$out" # Check the control sum echo "${src_sum} ${src_filename}" | ${src_sumprg} --check --status \ - || ynh_die --message="Corrupt source" + || ynh_die --message="Corrupt source for ${src_filename}: Expected ${src_sum} but got $(${src_sumprg} ${src_filename} | cut --delimiter=' ' --fields=1)." fi # Keep files to be backup/restored at the end of the helper