aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPjotr Prins2017-12-07 13:50:04 +0000
committerPjotr Prins2017-12-07 13:50:04 +0000
commit915b65391d4267da75ce3deeba8b9aafb2184c0a (patch)
tree08be489de77a53b2c0ae912e709651f5861a2f04 /src
parentdfc7a67aaab9ec752fadd4c29b4fd2646a57c8aa (diff)
downloadpangemma-915b65391d4267da75ce3deeba8b9aafb2184c0a.tar.gz
Improve error messages, closes https://github.com/genetics-statistics/GEMMA/issues/116
Diffstat (limited to 'src')
-rw-r--r--src/debug.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug.h b/src/debug.h
index e58c1d5..69457be 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -87,8 +87,8 @@ inline void fail_msg(std::string msg) {
#else // DEBUG
- #define warning_msg(msg) cerr << "**** WARNING: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl;
- #define debug_msg(msg) (is_debug_mode() && cerr << "**** DEBUG: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl);
+ #define warning_msg(msg) cerr << "**** WARNING: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __PRETTY_FUNCTION__ << endl;
+ #define debug_msg(msg) (is_debug_mode() && cerr << "**** DEBUG: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __PRETTY_FUNCTION__ << endl);
#define assert_issue(is_issue, expr) \
((is_issue) ? enforce_msg(expr,"FAIL: ISSUE assert") : __ASSERT_VOID_CAST(0))
@@ -102,7 +102,7 @@ inline void __enforce_fail(const char *__assertion, const char *__file,
unsigned int __line,
const char *__function)
{
- std::cout << "ERROR: Enforce failed for " << __assertion << " in " << __file << " at line " << __line << " in " << __PRETTY_FUNCTION__ << std::endl;
+ std::cout << "ERROR: Enforce failed for " << __assertion << " in " << __file << " at line " << __line << " in " << __function << std::endl;
exit(1);
}