TypeScript Exception Logging

Descripción

Catch an exception and log it


File Template: ❌


Prefix

log:exception


Scopes

typescript


Snippet de código

try {
	${1:// code that may throw exception}
} catch (${2:error}: unknown) {
	console.error("${3:Error message}", error);
}