Skip to content

Commit

Permalink
Merge pull request #2 from roots/exception-text
Browse files Browse the repository at this point in the history
Change exception text
  • Loading branch information
austinpray authored Aug 10, 2018
2 parents ebdfab7 + 1f78c9b commit 37c3823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function get($key)
{
if (!array_key_exists($key, self::$configMap)) {
$class = self::class;
throw new UndefinedConfigKeyException("'$key' has not been set by $class::define('$key', ...)");
throw new UndefinedConfigKeyException("'$key' has not been defined. Use `$class::define('$key', ...)`.");
}

return self::$configMap[$key];
Expand Down Expand Up @@ -102,7 +102,7 @@ public static function apply()
protected static function defined($key)
{
if (defined($key)) {
$message = "Bedrock aborted trying to redefine constant '$key'";
$message = "Aborted trying to redefine constant '$key'. `define('$key', ...)` has already been occurred elsewhere.";
throw new ConstantAlreadyDefinedException($message);
}

Expand Down

0 comments on commit 37c3823

Please sign in to comment.