summaryrefslogtreecommitdiff
path: root/src/binary-reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader.h')
-rw-r--r--src/binary-reader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/binary-reader.h b/src/binary-reader.h
index c3506aa3..b0e1cb98 100644
--- a/src/binary-reader.h
+++ b/src/binary-reader.h
@@ -22,6 +22,7 @@
#include "src/binary.h"
#include "src/common.h"
+#include "src/error.h"
#include "src/feature.h"
#include "src/opcode.h"
#include "src/string-view.h"
@@ -63,7 +64,7 @@ class BinaryReaderDelegate {
virtual ~BinaryReaderDelegate() {}
- virtual bool OnError(ErrorLevel, const char* message) = 0;
+ virtual bool OnError(const Error&) = 0;
virtual void OnSetState(const State* s) { state = s; }
/* Module */