Confusing error message

Am I only one who has been confused with the following error message?

julia> pi = 3
ERROR: cannot assign variable MathConstants.pi from module Main

The error message sounds like, I cannot assign the variable pi (to something else), rather than I cannot assign the value 3 to the variable pi. How about this? Don’t it sound more clear to you?

ERROR: cannot assign a value to variable MathConstants.pi from module Main

1 Like

Yes, I think your suggestion is more clear.

2 Likes

I’ve submitted this proposed change as PR #30548.

1 Like

Thanks @waldyrious