Skip to content

Commit 37fd6e3

Browse files
committed
minor #37538 Add the name of the env to RuntimeException (Simon Frost)
This PR was squashed before being merged into the 5.2-dev branch. Discussion ---------- Add the name of the env to RuntimeException | Q | A | ------------- | --- | Branch? | master for features | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets |   | License | MIT | Doc PR if you have the name of the env in the exception message it is much easier to find the error from -> #20 Commits ------- 00ab757cbb Add the name of the env to RuntimeException
2 parents 4347aea + 0aa692b commit 37fd6e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EnvVarProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,6 @@ public function getEnv(string $prefix, string $name, \Closure $getEnv)
290290
return trim($env);
291291
}
292292

293-
throw new RuntimeException(sprintf('Unsupported env var prefix "%s".', $prefix));
293+
throw new RuntimeException(sprintf('Unsupported env var prefix "%s" for env name "%s".', $prefix, $name));
294294
}
295295
}

0 commit comments

Comments
 (0)