Catch errors while performing query
[MAILPOET-6184]
This commit is contained in:
@@ -31,12 +31,16 @@ class DatabaseEngineNotice {
|
||||
return null;
|
||||
}
|
||||
|
||||
$tablesWithIncorrectEngine = $this->checkTableEngines();
|
||||
if ($tablesWithIncorrectEngine === []) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
$tablesWithIncorrectEngine = $this->checkTableEngines();
|
||||
if ($tablesWithIncorrectEngine === []) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->display($tablesWithIncorrectEngine);
|
||||
return $this->display($tablesWithIncorrectEngine);
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user