'How to catch internal error message thrown inside a package/library?
How can I catch an internal error message in nodejs/express js that is thrown from a package that I am using (e.g passport)
Solution 1:[1]
Hey there it's best to use try and catch blocks in your code in order to see errors thrown from the third party api's
try {
// your code here
}catch(error){
console.log(error)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | MUGABA |
