From 8afdd282b30cc6b2492fcec513ca82fd5ee2ad0b Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Sat, 16 Jun 2012 08:00:23 +0000 Subject: [PATCH] More specific error message --- src/main.cc | 1 - src/rararchive.cc | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 2ca0c49..2ff8e82 100644 --- a/src/main.cc +++ b/src/main.cc @@ -266,7 +266,6 @@ int main( int argc, char ** argv) { if ( ! arc.Init(param.rarfile) ) { - Opt::usage(argv[0]); return -1; } diff --git a/src/rararchive.cc b/src/rararchive.cc index 905e326..51a37cb 100644 --- a/src/rararchive.cc +++ b/src/rararchive.cc @@ -91,7 +91,11 @@ RARArchive::Init(std::string filename) voldigits++; if ( voldigits > 5 ) + { + std::cerr << "Too many digits in volume number" << + std::endl; return false; + } } offset = numprefix.size() + voldigits + volsuffix.size(); -- 2.11.4.GIT