summaryrefslogtreecommitdiffhomepage
path: root/faceapi/utils.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-02 18:41:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-02 18:41:01 +0200
commit8303597a865400a363ae574ccde819302495f498 (patch)
treec83b383b3ec818f610cc6137f2b72ee7b4173b09 /faceapi/utils.h
parent8adf6b1650af6027f28db12ca2b4de92a3fac11d (diff)
Just put everything new in. Conflict resolution will be later
Diffstat (limited to 'faceapi/utils.h')
-rw-r--r--faceapi/utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/faceapi/utils.h b/faceapi/utils.h
index 1fdb35b5..5d25e9a7 100644
--- a/faceapi/utils.h
+++ b/faceapi/utils.h
@@ -2,6 +2,8 @@
#define SM_API_TESTAPPCONSOLE_UTILS_H
#include "lock.h"
+#include <exception>
+#include <iostream>
#define THROW_ON_ERROR(x) \
{ \
@@ -10,7 +12,8 @@
{ \
std::stringstream s; \
s << "API error code: " << result; \
- throw std::runtime_error(s.str()); \
+ std::cerr << s; \
+ throw std::exception(); \
} \
}