Skip to content

Commit

Permalink
Exclude non-placeholder variables (#5215)
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Sep 3, 2022
1 parent a3ff4ab commit e1c9c04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Drupal/Commands/core/DeployHookCommands.php
Expand Up @@ -204,7 +204,9 @@ public static function updateDoOneDeployHook(string $function, DrushBatchContext
Drush::logger()->error($e->getMessage());

$variables = Error::decodeException($e);
unset($variables['backtrace']);
$variables = array_filter($variables, function ($key) {
return $key[0] == '@' || $key[0] == '%';
}, ARRAY_FILTER_USE_KEY);
// On windows there is a problem with json encoding a string with backslashes.
$variables['%file'] = strtr($variables['%file'], [DIRECTORY_SEPARATOR => '/']);
$ret['#abort'] = [
Expand Down

0 comments on commit e1c9c04

Please sign in to comment.