So I am using MYSQL NPM. After using the MYSQL connection the project ends. I know I am not closing the connection and I get this error
throw er; // Unhandled ‘error’ event
Error: Connection lost: The server closed the connection.
I know it’s when the server closes the connection - I am fine with the connection closing. How to I caught this error so it doesn’t throw the error in the Log?