]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
UBUNTU: [Debian] config-check -- Make it easier to find annotations syntax errors
authorSeth Forshee <seth.forshee@canonical.com>
Tue, 22 Nov 2016 14:32:17 +0000 (08:32 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
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 <seth.forshee@canonical.com>
debian/scripts/config-check

index 07958556e58ec0d90173258bee3fc0c26de87a02..224be080514a145d25461c7071cba5a6a5ca0a2d 100755 (executable)
@@ -85,7 +85,7 @@ for $config (keys %annot) {
                        if ($value =~ /^{/) {
                                $value =~ s/:/=>/g;
                                $policy = eval($value);
-                               warn "$@" if ($@);
+                               warn "$config: $@" if ($@);
                        } else {
                                $policy = undef;
                        }