Skip to content

Commit 24607cb

Browse files
Improve exception messages
1 parent 16d9db3 commit 24607cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Driver/Xdebug.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public function __construct(?Filter $filter = null)
4747

4848
if ($mode === false ||
4949
!\in_array('coverage', \explode(',', $mode), true)) {
50-
throw new RuntimeException('XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set');
50+
throw new RuntimeException('XDEBUG_MODE=coverage (environment variable) or xdebug.mode=coverage (PHP configuration setting) has to be set');
5151
}
5252
} elseif (!\ini_get('xdebug.coverage_enable')) {
53-
throw new RuntimeException('xdebug.coverage_enable=On has to be set');
53+
throw new RuntimeException('xdebug.coverage_enable=On (PHP configuration setting) has to be set');
5454
}
5555

5656
if ($filter === null) {

0 commit comments

Comments
 (0)