Clarify some more
parent
9e210c8338
commit
19bfd6c713
|
@ -180,7 +180,7 @@ class Config
|
||||||
if ($env = getenv('COMPOSER_DISCARD_CHANGES')) {
|
if ($env = getenv('COMPOSER_DISCARD_CHANGES')) {
|
||||||
if (!in_array($env, array('stash', 'true', 'false', '1', '0'), true)) {
|
if (!in_array($env, array('stash', 'true', 'false', '1', '0'), true)) {
|
||||||
throw new \RuntimeException(
|
throw new \RuntimeException(
|
||||||
"Invalid value for COMPOSER_DISCARD_CHANGES: {$this->config[$key]}, expected 1, 0, true, false or stash"
|
"Invalid value for COMPOSER_DISCARD_CHANGES: {$env}. Expected 1, 0, true, false or stash"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ('stash' === $env) {
|
if ('stash' === $env) {
|
||||||
|
@ -193,7 +193,7 @@ class Config
|
||||||
|
|
||||||
if (!in_array($this->config[$key], array(true, false, 'stash'), true)) {
|
if (!in_array($this->config[$key], array(true, false, 'stash'), true)) {
|
||||||
throw new \RuntimeException(
|
throw new \RuntimeException(
|
||||||
"Invalid value for 'discard-changes': {$this->config[$key]}, expected true, false or stash"
|
"Invalid value for 'discard-changes': {$this->config[$key]}. Expected true, false or stash"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue