Commit 983a27d2 authored by Luke Mills's avatar Luke Mills

Added extra detail to exception messages.

parent 9dbb8cab
...@@ -42,7 +42,7 @@ class EcomDev_PHPUnit_Model_Mysql4_Fixture extends Mage_Core_Model_Mysql4_Abstra ...@@ -42,7 +42,7 @@ class EcomDev_PHPUnit_Model_Mysql4_Fixture extends Mage_Core_Model_Mysql4_Abstra
->delete($this->getTable($tableEntity)); ->delete($this->getTable($tableEntity));
} catch (Exception $e) { } catch (Exception $e) {
throw new EcomDev_PHPUnit_Model_Mysql4_Fixture_Exception( throw new EcomDev_PHPUnit_Model_Mysql4_Fixture_Exception(
sprintf('Unable to clear records for a table "%s"', $tableEntity), sprintf('Unable to clear records for a table "%s" - "%s"', $tableEntity, $e->getMessage()),
$e $e
); );
} }
...@@ -72,7 +72,7 @@ class EcomDev_PHPUnit_Model_Mysql4_Fixture extends Mage_Core_Model_Mysql4_Abstra ...@@ -72,7 +72,7 @@ class EcomDev_PHPUnit_Model_Mysql4_Fixture extends Mage_Core_Model_Mysql4_Abstra
); );
} catch (Exception $e) { } catch (Exception $e) {
throw new EcomDev_PHPUnit_Model_Mysql4_Fixture_Exception( throw new EcomDev_PHPUnit_Model_Mysql4_Fixture_Exception(
sprintf('Unable to insert/update records for a table "%s"', $tableEntity), sprintf('Unable to insert/update records for a table "%s" - "%s"', $tableEntity, $e->getMessage()),
$e $e
); );
} }
......
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