Descripción
Catch an exception and log it
File Template: ❌
Prefix
log:exception
Scopes
javascript
Snippet de código
try {
${1:// code that may throw exception}
} catch (${2:error}) {
console.error("${3:Error message}", error);
}
Catch an exception and log it
log:exception
javascript
try {
${1:// code that may throw exception}
} catch (${2:error}) {
console.error("${3:Error message}", error);
}