fix: eslint warnings (#252)
This commit is contained in:
10
frontend/utils/errorHandler.ts
Normal file
10
frontend/utils/errorHandler.ts
Normal 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);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user