Skip to content

Commit 2bca6ff

Browse files
Make error messages consistent
1 parent 4589e11 commit 2bca6ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PHP/CodeCoverage/Driver/HHVM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PHP_CodeCoverage_Driver_HHVM implements PHP_CodeCoverage_Driver
6363
public function __construct()
6464
{
6565
if (!function_exists('fb_enable_code_coverage')) {
66-
throw new PHP_CodeCoverage_Exception('You need HHVM for this driver');
66+
throw new PHP_CodeCoverage_Exception('This driver requires HHVM');
6767
}
6868
}
6969

PHP/CodeCoverage/Driver/Xdebug.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver
6363
public function __construct()
6464
{
6565
if (!extension_loaded('xdebug')) {
66-
throw new PHP_CodeCoverage_Exception('Xdebug is not loaded.');
66+
throw new PHP_CodeCoverage_Exception('This driver requires Xdebug');
6767
}
6868

6969
if (!ini_get('xdebug.coverage_enable')) {
7070
throw new PHP_CodeCoverage_Exception(
71-
'You need to set xdebug.coverage_enable=On in your php.ini.'
71+
'xdebug.coverage_enable=On has to be set in php.ini'
7272
);
7373
}
7474
}

0 commit comments

Comments
 (0)