From: http://drupal.org/node/409958#comment-1386470
By: haggins

I wonder if there's a method to get the http status code of the nokia.com request. I think file_save_data() will create a file even when $image->data contains no image data. If so then this http code should be returned, too.

Thinking about all of it the return value should be an array:

return array(
  'image' => theme('image', $file, $arguments['name'], $arguments['name'], NULL, FALSE),
  'file' => $file,
  'status' => $image->code,
);

Comments

deciphered’s picture

Status: Active » Fixed

6.x-2.x will display an error if request is unsuccessful.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.