From 07d22bb4ffda306bb297a32f7b3891664f8950cc Mon Sep 17 00:00:00 2001
From: Ingo Ruhnke <grumbel@gmx.de>
Date: Fri, 19 Jun 2009 00:52:37 +0200
Subject: [PATCH] Replaced exit(EXIT_FAILURE) with an exception

---
 src/command_line_options.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/command_line_options.cpp b/src/command_line_options.cpp
index 368173d..28620cd 100644
--- a/src/command_line_options.cpp
+++ b/src/command_line_options.cpp
@@ -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;