$this->setFormError('import_tarball',$form_state,$this->t('Could not extract the contents of the tar file. The error message is <em>@message</em>',array('@message'=>$e->getMessage())));
drupal_set_message($this->t('Could not extract the contents of the tar file. The error message is <em>@message</em>',array('@message'=>$e->getMessage())),'error');
form_set_error($form_field_name,$form_state,t('File upload error. Could not move uploaded file.'));
drupal_set_message(t('File upload error. Could not move uploaded file.'),'error');
watchdog('file','Upload error. Could not move uploaded file %file to destination %destination.',array('%file'=>$file->filename,'%destination'=>$file->uri));
$files[$i]=FALSE;
continue;
...
...
@@ -1496,7 +1496,7 @@ function file_managed_file_save_upload($element, array &$form_state) {