The following commit has been merged in the master branch:
commit ef3a694a65a5d6ecf4e591ae29a025f8d353cf26
Author: Andrei Zavada <[email protected]>
Date:   Fri Jun 21 20:09:03 2013 +0300

    more detailed cmdline arg diagnostics in agh-profile-gen

diff --git a/src/tools/agh-profile-gen.cc b/src/tools/agh-profile-gen.cc
index 3c1efd3..be778df 100644
--- a/src/tools/agh-profile-gen.cc
+++ b/src/tools/agh-profile-gen.cc
@@ -184,8 +184,10 @@ main( int argc, char **argv)
                if ( A.types.empty() )
                        throw invalid_argument ("Which profiles do you want?");
 
-               if ( !isfinite(A.pagesize) || !isfinite(A.step) )
-                       throw invalid_argument ("Missing or invalid pagesize or 
step");
+               if ( !isfinite(A.pagesize) )
+                       throw invalid_argument ("Missing or invalid pagesize");
+               if ( !isfinite(A.step) )
+                       throw invalid_argument ("Missing or invalid step");
 
                bool    do_psd = A.types.find( metrics::TType::psd) != 
A.types.end(),
                        do_mc  = A.types.find( metrics::TType:: mc) != 
A.types.end(),

-- 
Sleep experiment manager

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to