vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): vyperlang/vyper@b43fface148b45cbd2c90b5d24f77398a63745b5
Issue Description
Exceptions raised as part of the code generation
(module.generate_ir_for_module()) are wrapped in a CodegenError
exception for easier debugging. This is not the case for exceptions
raised during the optimization (optimizer.optimize()).
POC
For example, the following contract fails to compile with an
AssertionError and not a Vyper exception:
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@Issue Description
Exceptions raised as part of the code generation (
module.generate_ir_for_module()
) are wrapped in aCodegenError
exception for easier debugging. This is not the case for exceptions raised during the optimization (optimizer.optimize()
).POC
For example, the following contract fails to compile with an
AssertionError
and not a Vyper exception: