Skip to content

Commit f013177

Browse files
committed
Detector: Improve the error message
1 parent 0e62680 commit f013177

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Detector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ class Detector
4949
public function __construct(int $mode = self::MODE_SIMPLE, ?Enabler $enabler = null)
5050
{
5151
if ($enabler === null && $mode & self::MODE_ENABLER) {
52-
throw new MissingEnablerException('Enabler mode requires the Enabler instance in constructor');
52+
throw new MissingEnablerException(
53+
'Enabler mode (and Full mode) requires the Enabler instance in constructor'
54+
);
5355
}
5456

5557
$this->enabler = $enabler;

0 commit comments

Comments
 (0)