mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Improved error handling for --abort as per #108
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Generated: 2012-07-23 08:24:23.434402
|
||||
* Generated: 2012-07-28 20:22:25.519628
|
||||
* ----------------------------------------------------------
|
||||
* This file has been merged from multiple headers. Please don't edit it directly
|
||||
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
|
||||
@@ -3650,6 +3650,8 @@ namespace Catch {
|
||||
std::stringstream ss;
|
||||
ss << cmd[0];
|
||||
ss >> threshold;
|
||||
if( ss.fail() || threshold <= 0 )
|
||||
cmd.raiseError( "threshold must be a number greater than zero" );
|
||||
}
|
||||
config.cutoff = threshold;
|
||||
}
|
||||
|
Reference in New Issue
Block a user