diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-03-31 14:34:53 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-04-03 07:18:35 +0000 |
commit | b925265d48dca753335e788a9f5efe944ff1a7a6 (patch) | |
tree | 57491f191a188a6120891f226ebc10bcd9f509b7 /src/lib/corelib/tools/error.h | |
parent | 7a412abb420e9fdfbe81ad35f1ee406a20736705 (diff) |
Cumulate delayed product errors
If a delayed error leads to other errors later on, we would output the
later errors without showing the original - more important - delayed
errors.
Cumulate delayed product errors and pass them up the stack.
Change-Id: Ibdfc6d3e301a80ef265792907b3e4a150a22ef8b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/error.h')
-rw-r--r-- | src/lib/corelib/tools/error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/error.h b/src/lib/corelib/tools/error.h index 93a42f90d..a6a5711cb 100644 --- a/src/lib/corelib/tools/error.h +++ b/src/lib/corelib/tools/error.h @@ -91,6 +91,7 @@ public: ~ErrorInfo(); void appendBacktrace(const QString &description, const CodeLocation &location = CodeLocation()); + void append(const ErrorItem &item); void append(const QString &description, const CodeLocation &location = CodeLocation()); void prepend(const QString &description, const CodeLocation &location = CodeLocation()); QList<ErrorItem> items() const; @@ -107,6 +108,7 @@ private: QSharedDataPointer<ErrorInfoPrivate> d; }; +void appendError(ErrorInfo &dst, const ErrorInfo &src); inline uint qHash(const ErrorInfo &e) { return qHash(e.toString()); } inline bool operator==(const ErrorInfo &e1, const ErrorInfo &e2) { return e1.toString() == e2.toString(); |