summaryrefslogtreecommitdiff
path: root/src/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdline')
-rw-r--r--src/cmdline/cmdline_changelog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmdline/cmdline_changelog.cc b/src/cmdline/cmdline_changelog.cc
index 53e6faf7..3dd70362 100644
--- a/src/cmdline/cmdline_changelog.cc
+++ b/src/cmdline/cmdline_changelog.cc
@@ -425,7 +425,8 @@ void do_cmdline_changelog(const vector<string> &packages,
_error->Error(_("Couldn't find a changelog for %s"), input.c_str());
else
// Run the user's pager.
- system((string(pager) + " " + filename.get_name()).c_str());
+ if(system((string(pager) + " " + filename.get_name()).c_str()) != 0)
+ _error->Error(_("Couldn't run pager %s"), pager);
}
_error->DumpErrors();