mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 13:17:58 +02:00
DibiConnection::test() shows complete error message
This commit is contained in:
@@ -287,7 +287,11 @@ class DibiConnection extends DibiObject
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
} catch (DibiException $e) {
|
} catch (DibiException $e) {
|
||||||
|
if ($e->getSql()) {
|
||||||
dibi::dump($e->getSql());
|
dibi::dump($e->getSql());
|
||||||
|
} else {
|
||||||
|
echo get_class($e) . ': ' . $e->getMessage() . (PHP_SAPI === 'cli' ? "\n" : '<br>');
|
||||||
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user