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/wast-parser-lexer-shared.cc | |
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/wast-parser-lexer-shared.cc')
-rw-r--r-- | src/wast-parser-lexer-shared.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wast-parser-lexer-shared.cc b/src/wast-parser-lexer-shared.cc index e7931530..58b9b7a3 100644 --- a/src/wast-parser-lexer-shared.cc +++ b/src/wast-parser-lexer-shared.cc @@ -49,8 +49,8 @@ void WastFormatError(ErrorHandler* error_handler, } } - error_handler->OnError(*loc, std::string(buffer), source_line.line, - source_line.column_offset); + error_handler->OnError(ErrorLevel::Error, *loc, std::string(buffer), + source_line.line, source_line.column_offset); va_end(args_copy); } |