Style: Could you move this either on to the same line as the `if(error != NULL)` or put curlies around it?