aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/tools/error.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-10-02 16:32:03 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-10-04 08:16:36 +0000
commitb6a94db929a1f8503c2b516c5114a73181b8799a (patch)
treec9d51e4fa82d1d87e02afc02e7a7a481eb8d401e /src/lib/corelib/tools/error.h
parent44cf2e744cf8a36ba7bcfe9766b616e6b9e4aee8 (diff)
Fix missing error location in case of syntax errors in scripts
We used a backtrace whenever one was available, but if it contains no error location, it actually decreases the usefulness of the error message. In such cases, ignore it and use the fallback error location instead. Change-Id: I7da6a7cf2ddce17f6c1da82fbc4a08148b26e2b4 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/error.h')
-rw-r--r--src/lib/corelib/tools/error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/error.h b/src/lib/corelib/tools/error.h
index a6a5711cb..3891a0eb4 100644
--- a/src/lib/corelib/tools/error.h
+++ b/src/lib/corelib/tools/error.h
@@ -99,6 +99,7 @@ public:
void clear();
QString toString() const;
bool isInternalError() const;
+ bool hasLocation() const;
void load(Internal::PersistentPool &pool);
void store(Internal::PersistentPool &pool) const;