Move perform error into module.