aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/ErrorReporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/interface/ErrorReporter.h')
-rw-r--r--libsolidity/interface/ErrorReporter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h
index d1a0030f..fd53587a 100644
--- a/libsolidity/interface/ErrorReporter.h
+++ b/libsolidity/interface/ErrorReporter.h
@@ -92,6 +92,12 @@ public:
void clear();
+ /// @returns true iff there is any error (ignores warnings).
+ bool hasErrors() const
+ {
+ return m_errorCount > 0;
+ }
+
private:
void error(Error::Type _type,
SourceLocation const& _location,