diff --git a/src/Config.php b/src/Config.php index 77e0778..3c1a8f2 100644 --- a/src/Config.php +++ b/src/Config.php @@ -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]; @@ -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); }