diff options
author | Guillem Jover <guillem@debian.org> | 2015-03-12 23:53:30 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-04-21 07:12:27 +0200 |
commit | 3a5e0d6cd99c92cfe7c22fb33c636bf15bcf4728 (patch) | |
tree | de6b8df152e79c15083e06a181b3a20a4c943aa5 /dpkg-deb | |
parent | 6d987d5647075275f7261e1b7f9c7d157cfc40fb (diff) | |
download | dpkg-3a5e0d6cd99c92cfe7c22fb33c636bf15bcf4728.tar.gz |
dpkg: Use badusage() instead of ohshit() for command-line errors
Diffstat (limited to 'dpkg-deb')
-rw-r--r-- | dpkg-deb/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c index 686e82f42..eb5b295cd 100644 --- a/dpkg-deb/main.c +++ b/dpkg-deb/main.c @@ -204,7 +204,7 @@ set_compress_strategy(const struct cmdinfo *cip, const char *value) { compress_params.strategy = compressor_get_strategy(value); if (compress_params.strategy == COMPRESSOR_STRATEGY_UNKNOWN) - ohshit(_("unknown compression strategy '%s'!"), value); + badusage(_("unknown compression strategy '%s'!"), value); } static void @@ -212,7 +212,7 @@ set_compress_type(const struct cmdinfo *cip, const char *value) { compress_params.type = compressor_find_by_name(value); if (compress_params.type == COMPRESSOR_TYPE_UNKNOWN) - ohshit(_("unknown compression type '%s'!"), value); + badusage(_("unknown compression type '%s'!"), value); if (compress_params.type == COMPRESSOR_TYPE_LZMA) warning(_("deprecated compression type '%s'; use xz instead"), value); if (compress_params.type == COMPRESSOR_TYPE_BZIP2) |