diff options
Diffstat (limited to 'dpkg-deb/info.c')
-rw-r--r-- | dpkg-deb/info.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c index 53eb4cf7a..7c3483cd5 100644 --- a/dpkg-deb/info.c +++ b/dpkg-deb/info.c @@ -271,11 +271,13 @@ do_showinfo(const char *const *argv) { const char *debar, *dir; char *controlfile; + struct dpkg_error err; struct pkginfo *pkg; - struct pkg_format_node *fmt = pkg_format_parse(showformat); + struct pkg_format_node *fmt; + fmt = pkg_format_parse(showformat, &err); if (!fmt) - ohshit(_("Error in format")); + ohshit(_("error in show format: %s"), err.str); info_prepare(&argv, &debar, &dir, 1); |