refactor: clean code

This commit is contained in:
Fu Diwei
2024-12-18 10:20:32 +08:00
parent df71782719
commit 2374bb56fa
11 changed files with 40 additions and 27 deletions

View File

@@ -11,5 +11,5 @@ export const getErrMsg = (error: unknown): string => {
return error;
}
return "Something went wrong";
return String(error ?? "Unknown error");
};