Replaced exit(EXIT_FAILURE) with an exception
This commit is contained in:
parent
2893dca152
commit
07d22bb4ff
1 changed files with 2 additions and 1 deletions
|
@ -17,13 +17,14 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/format.hpp>
|
||||
|
||||
#include "helper.hpp"
|
||||
#include "command_line_options.hpp"
|
||||
|
||||
#define RAISE_EXCEPTION(x) static_cast<std::ostringstream&>(std::ostringstream() << x).str()
|
||||
#define RAISE_EXCEPTION(x) throw std::runtime_error(static_cast<std::ostringstream&>(std::ostringstream() << x).str())
|
||||
|
||||
CommandLineOptions* command_line_options = 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue