Skip to content

Commit

Permalink
[error] stupid bug is fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
  • Loading branch information
Denis Zalevskiy committed Sep 25, 2014
1 parent 367e12e commit b1d3dc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/qtaround/error.hpp
Expand Up @@ -21,12 +21,13 @@ class Error : public std::exception
virtual ~Error() noexcept(true) {}
virtual const char* what() const noexcept(true)
{
QString s;
QDebug(&s) << m;
if (s.isEmpty())
s = dump(m);
return s.toUtf8();
}

QVariantMap m;
mutable QString s;
};

static inline QDebug operator << (QDebug dst, error::Error const &src)
Expand Down

0 comments on commit b1d3dc0

Please sign in to comment.