Remove call to error_code

Method not in scope.