From: Seth Forshee Date: Tue, 22 Nov 2016 14:32:17 +0000 (-0600) Subject: UBUNTU: [Debian] config-check -- Make it easier to find annotations syntax errors X-Git-Tag: Ubuntu-4.10.0-9.11~195 X-Git-Url: https://git.proxmox.com/?p=mirror_ubuntu-zesty-kernel.git;a=commitdiff_plain;h=6690fc0758d00c13c8e1dcf95af905b2f0034578 UBUNTU: [Debian] config-check -- Make it easier to find annotations syntax errors The errors from eval due to malformed annotations values often are not very helpful in tracking down the source of the error. Make this easier by printing the name of the confguration option along with the error string. Signed-off-by: Seth Forshee --- diff --git a/debian/scripts/config-check b/debian/scripts/config-check index 07958556e58e..224be080514a 100755 --- a/debian/scripts/config-check +++ b/debian/scripts/config-check @@ -85,7 +85,7 @@ for $config (keys %annot) { if ($value =~ /^{/) { $value =~ s/:/=>/g; $policy = eval($value); - warn "$@" if ($@); + warn "$config: $@" if ($@); } else { $policy = undef; }