You are here

function _patch_manager_display_errors in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.module \_patch_manager_display_errors()

Quick and nasty function because I'm not sure what to do with errors

4 calls to _patch_manager_display_errors()
patch_manager_apply_action in ./patch_manager.module
Patch apply action
patch_manager_node_actions_form_apply_submit in ./patch_manager.module
Apply the patch in a node view context
patch_manager_node_actions_form_reverse_submit in ./patch_manager.module
Reverse the patch in a node view context
patch_manager_revert_action in ./patch_manager.module
Patch revert action

File

./patch_manager.module, line 479
Patch manager provides developers with tools for managing patches.

Code

function _patch_manager_display_errors($result) {
  drupal_set_message(t('Patching did not go smoothly.'));
  drupal_set_message(t('This command was issued: %command', array(
    '%command' => $result->cmd,
  )));
  drupal_set_message(t('This was the output from patch: <pre>@output</pre>', array(
    '@output' => implode("\n", $result->output),
  )));
}