Skip to content

Commit

Permalink
exceptions needs to show the reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Programátor authored and Programátor committed Aug 3, 2020
1 parent 96a39fc commit ea676ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Zrny\MkSQL;


use Nette\Database\Row;
use Zrny\MkSQL\Enum\DriverType;

Expand Down
5 changes: 3 additions & 2 deletions src/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ public function install()
$this->db->query($Command["sql"]);
}
$this->db->commit();
}catch(PDOException $ex)
}
catch(\Exception $ex)
{
$this->db->rollBack();
throw new $ex;
throw new DriverException($ex->getMessage());
}
}

Expand Down

0 comments on commit ea676ed

Please sign in to comment.