Skip to content

Commit

Permalink
Merge pull request #4529 from eduardor2k/eduardor2k-patch-1
Browse files Browse the repository at this point in the history
Show cause of the error when fixture can't not be loaded
  • Loading branch information
marcovtwout authored Aug 10, 2023
2 parents 4af7dcf + 651a10e commit f727815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Version 1.1.29 under development

- Bug #4516: PHP 8 compatibility: Allow union types and intersection types in action declarations (wtommyw)
- Bug #4523: Fixed translated in Greek class messages in framework requirements view, which they should not be translated (lourdas)
- Enh #4529: Exceptions thrown while loading fixture file rows now contain more details (eduardor2k)

Version 1.1.28 February 28, 2023
--------------------------------
Expand Down
2 changes: 1 addition & 1 deletion framework/test/CDbFixtureManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function loadFixture($tableName)
try {
$builder->createInsertCommand($table,$row)->execute();
} catch (CException $e) {
throw new CException('Exception loading row ' . $alias . ' in fixture ' . $fileName, $e->getCode(), $e);
throw new CException('Exception loading row ' . $alias . ' in fixture ' . $fileName . ', Error: ' . $e->getMessage(), $e->getCode(), $e);
}
$primaryKey=$table->primaryKey;
if($table->sequenceName!==null)
Expand Down

0 comments on commit f727815

Please sign in to comment.