Then must be followed by catch?

eslint has a rule that requires then to be followed by a catch
, but in most cases it does not support how to deal with the err, in catch (err= >. ), so I usually just console.log it
then the question is, is it necessary to follow catch?
as I did above directly console.log (err) does not help the page, the card is still stuck, writing catch is not superfluous?

Apr.28,2021
Is

https://eslint.org/docs/rules/
an official rule?


in nodejs's new standard, all promise error must be explicitly handled, and only warnings are displayed during the current transition phase. Therefore, it is recommended to use promise, that is, what you call then, it is best to add catch.
catch after living in error, or record log or do other processing, so that the whole program will not be abnormal.
when you say that the page is stuck, it is mostly caused by an exception, and after processing, you do not use res.response or res.send or res.redirect to end the request (assuming that you are using other Express, web framework is also similar), causing the page to wait all the time and finally report an error when it times out.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bee71d-31bee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bee71d-31bee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?