Errors view: fix generated code