When running the Dolphin function execSqlFile, The following error happens if a duplicate entry occurs when running the sql file.
Got error 'PHP message: PHP Catchable fatal error: Argument 1 passed to BxDolExceptionHandler::handle() must be an instance of Throwable, instance of PDOException given in /var/www/vhosts/deanbassett.com/dev740.deanbassett.com/inc/classes/BxDolExceptionHandler.php on line 16\n'
No log entry is made in the errors file that's created in the tmp folder when database errors occur.
Seems to be a bug in dolphin with that function.
Took me a while to track this one down. A couple of my modules use this function and if a database error occurs when execSqlFile runs the sql, there is no indication of what went wrong.