Remove spurious `er.code =` assignments.

Someone sanity-check me on this? Seems straightforward, but the original code is so silly I must be missing something....