I have a mysql statement that creates an entry, it has a .then function and a .catch function, but when the following error occurs:
.then
.catch
T
mysqlConnectionPool.execute is throwing the exception before creating a promise.
mysqlConnectionPool.execute
i.e. the exception is not thrown from within the promise.
To catch it you would need to try {} catch (e) {} around the call to mysqlConnectionPool.execute.
try {} catch (e) {}