Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Put the code first in the error hash

天舟d5fdad1131bb
diff --git a/frontend/src/types/errorList.ts b/frontend/src/types/errorList.ts
index b9f0867345..bd44d4e51d 100644
--- a/frontend/src/types/errorList.ts
+++ b/frontend/src/types/errorList.ts
@@ -1,16 +1,17 @@
import { ErrorMeta } from ".";
+// List should be kept in sync with https://github.com/bytebase/bytebase.com/blob/main/pages/doc/errorList.ts
export const ERROR_LIST: ErrorMeta[] = [
{
code: 0,
- hash: "ok-0",
+ hash: "0-ok",
},
{
code: 101,
- hash: "db-connection-101",
+ hash: "101-db-connection",
},
{
code: 10001,
- hash: "drop-database-10001",
+ hash: "10001-drop-database",
},
];