Commit c397c26a authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1221 from arisk/patch-1

Added PDO error code
parents 1824b0b2 752161ca
...@@ -22,6 +22,9 @@ class Exception extends \Exception { ...@@ -22,6 +22,9 @@ class Exception extends \Exception {
$this->inner = $inner; $this->inner = $inner;
$this->setMessage($sql, $bindings); $this->setMessage($sql, $bindings);
// Set the exception code
$this->code = $inner->getCode();
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment