Skip to content

Commit

Permalink
codegen: fix setfield! error message emission
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Oct 15, 2021
1 parent 485495f commit a11d804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3293,7 +3293,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
const jl_cgval_t *modifyop, const std::string &fname)
{
if (!sty->name->mutabl && checked) {
std::string msg = fname + "immutable struct of type "
std::string msg = fname + ": immutable struct of type "
+ std::string(jl_symbol_name(sty->name->name))
+ " cannot be changed";
emit_error(ctx, msg);
Expand Down

0 comments on commit a11d804

Please sign in to comment.