a cache for slack profile pictures and emojis

feat: handle thrown exceptions

Changed files
+4 -1
src
+4 -1
src/index.ts
···
}),
)
.onError(({ code, error }) => {
-
console.error(error);
+
if (error instanceof Error)
+
console.error(
+
`\x1b[31m x\x1b[0m unhandled error: \x1b[31m${error.message}\x1b[0m`,
+
);
Sentry.captureException(error);
if (code === "VALIDATION") {
return error.message;