fix: eslint warnings (#252)

This commit is contained in:
kimatata
2025-07-20 10:59:57 +09:00
committed by GitHub
parent e6be84b67e
commit 9ae67fd303
118 changed files with 423 additions and 511 deletions

View File

@@ -0,0 +1,10 @@
/**
* Error handler utility for logging errors
*/
export const logError = (context: string, error: unknown) => {
if (error instanceof Error) {
console.error(`${context}:`, error.message);
} else {
console.error(`${context}:`, error);
}
};