From 38117b1dc628f8cc9f5183ed2948f6df84a350bc Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Wed, 14 Dec 2011 17:41:43 +0100 Subject: [PATCH] Add missing dump file message --- thin_dump.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/thin_dump.cc b/thin_dump.cc index 594882c..93552b1 100644 --- a/thin_dump.cc +++ b/thin_dump.cc @@ -82,12 +82,16 @@ int main(int argc, char **argv) } } - if (argc == 1 || - filename.empty()) { + if (argc == 1) { usage(); return 1; } + if (filename.empty()) { + cerr << "No dump file name" << endl; + return 1; + } + dump(filename, format); return 0; }