SilverBullet pivot to become an offline-first PWA (#403)
This commit is contained in:
@@ -17,7 +17,7 @@ export async function readSecrets(keys: string[]): Promise<any[]> {
|
||||
}
|
||||
return collectedSecrets;
|
||||
} catch (e: any) {
|
||||
if (e.message === "Page not found") {
|
||||
if (e.message === "Not found") {
|
||||
throw new Error(`No such secret: ${keys[0]}`);
|
||||
}
|
||||
throw e;
|
||||
@@ -34,7 +34,7 @@ export async function readSecret(key: string): Promise<any> {
|
||||
}
|
||||
return val;
|
||||
} catch (e: any) {
|
||||
if (e.message === "Page not found") {
|
||||
if (e.message === "Not found") {
|
||||
throw new Error(`No such secret: ${key}`);
|
||||
}
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user