bae6d7133b9774248d9d95a567bc1d7485485d9a — Marek Marecki 4 months ago 2a6cb52
Highlight the opcode token in the error message

The error line looks better this way, and makes it immediately obvious
why an integer was expected.
1 files changed, 1 insertions(+), 1 deletions(-)

M new/src/tools/libs/stage.cpp
M new/src/tools/libs/stage.cpp => new/src/tools/libs/stage.cpp +1 -1
@@ 632,7 632,7 @@ auto expand_li(std::vector<ast::Instruction>& cooked,
    } catch (std::invalid_argument const&) {
        using viua::libs::errors::compile_time::Cause;
        using viua::libs::errors::compile_time::Error;
        throw Error{raw_value, Cause::Invalid_operand, "expected integer"};
        throw Error{raw_value, Cause::Invalid_operand, "expected integer"}.add(each.opcode);

    using viua::libs::assembler::to_loading_parts_unsigned;