Browse Source

Spaces needed in error messages.

pull/801/head
Rosie Le Faive 5 years ago
parent
commit
1b11f37c69
  1. 4
      src/Plugin/Action/AbstractGenerateDerivative.php

4
src/Plugin/Action/AbstractGenerateDerivative.php

@ -142,7 +142,7 @@ class AbstractGenerateDerivative extends EmitEvent {
// url in the data array. // url in the data array.
$source_term = $this->utils->getTermForUri($this->configuration['source_term_uri']); $source_term = $this->utils->getTermForUri($this->configuration['source_term_uri']);
if (!$source_term) { if (!$source_term) {
throw new \RuntimeException("Could not locate source term with uri" . $this->configuration['source_term_uri'], 500); throw new \RuntimeException("Could not locate source term with uri: " . $this->configuration['source_term_uri'], 500);
} }
$source_media = $this->utils->getMediaWithTerm($entity, $source_term); $source_media = $this->utils->getMediaWithTerm($entity, $source_term);
@ -161,7 +161,7 @@ class AbstractGenerateDerivative extends EmitEvent {
// in the data array. // in the data array.
$derivative_term = $this->utils->getTermForUri($this->configuration['derivative_term_uri']); $derivative_term = $this->utils->getTermForUri($this->configuration['derivative_term_uri']);
if (!$derivative_term) { if (!$derivative_term) {
throw new \RuntimeException("Could not locate derivative term with uri" . $this->configuration['derivative_term_uri'], 500); throw new \RuntimeException("Could not locate taxonomy term with uri: " . $this->configuration['derivative_term_uri'], 500);
} }
$route_params = [ $route_params = [

Loading…
Cancel
Save