From 1fec702978b82945f5e6097f765d505f25f30097 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Wed, 16 May 2018 19:21:19 -0700 Subject: 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. --- src/binary-reader-logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/binary-reader-logging.h') 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; -- cgit v1.2.3