diff --git a/packages/main/src/backend/configManager/configManager.ts b/packages/main/src/backend/configManager/configManager.ts index 5daadb0c..740134a7 100644 --- a/packages/main/src/backend/configManager/configManager.ts +++ b/packages/main/src/backend/configManager/configManager.ts @@ -8,6 +8,10 @@ export async function getConfig(configPath: string = configFilePath): Promise { const existedSALT = await loadSALT(); if (existedSALT) return existedSALT; - if (!defaultValue) throw Error('SALT not exist'); + if (!defaultValue) throw Error('SALT not existed and no default value provided'); await saveSALT(defaultValue); return defaultValue;