diff options
author | Ben Smith <binjimin@gmail.com> | 2018-05-16 19:21:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 19:21:19 -0700 |
commit | 1fec702978b82945f5e6097f765d505f25f30097 (patch) | |
tree | c1df59bd7fdfc8609c1eac150e3dd5a85854c1c7 /src/binary-reader-logging.h | |
parent | dd7663d78bf483308cd8d70d114748321f2cd61f (diff) | |
download | wabt-1fec702978b82945f5e6097f765d505f25f30097.tar.gz wabt-1fec702978b82945f5e6097f765d505f25f30097.tar.bz2 wabt-1fec702978b82945f5e6097f765d505f25f30097.zip |
Print "warning" for ignored custom section errors (#843)
The previous message said "error", which makes it look like the output
is not created, so change the message to "warning" instead.
The error handling code is pretty ugly and can use a refactor, but that
would be a much larger change.
Diffstat (limited to 'src/binary-reader-logging.h')
-rw-r--r-- | src/binary-reader-logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-logging.h b/src/binary-reader-logging.h index 2e9c6495..ad12c557 100644 --- a/src/binary-reader-logging.h +++ b/src/binary-reader-logging.h @@ -27,7 +27,7 @@ class BinaryReaderLogging : public BinaryReaderDelegate { public: BinaryReaderLogging(Stream*, BinaryReaderDelegate* forward); - bool OnError(const char* message) override; + bool OnError(ErrorLevel, const char* message) override; void OnSetState(const State* s) override; Result BeginModule(uint32_t version) override; |