app store scripts

This commit is contained in:
pj committed 2026-09-01 22:32:34 +05:30
1 parent 585933c8a1
commit e8772e6699
6 files changed
+134 -15

No files matched your search

+2 -2
View File
@@ -30,10 +30,10 @@ export async function loadBook(id: string): Promise<Book> {
try {
book = JSON.parse(contents) as Book;
} catch {
throw new Error("the book file is corrupt or unreadable");
throw new Error("the project file is corrupt or unreadable");
}
if (schemaVersion(book.schema) > SCHEMA_VERSION) {
throw new Error("this book was made with a newer version of Margin; update the app to open it");
throw new Error("this project was made with a newer version of Margin; update the app to open it");
}
return book;
}