summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.h b/error.h
index 6b5202a4..e6a4984c 100644
--- a/error.h
+++ b/error.h
@@ -14,7 +14,7 @@ class error : public std::exception
virtual ~error() throw() {}
virtual const char* what() const throw() {
- return reason;
+ return reason.c_str();
}
};