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