Skip to content

Commit d5f84f5

Browse files
Tag createEditableCopy's two error conditions separately
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 5ce31d8 commit d5f84f5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/services/projectStorage.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,9 @@ export async function savePt9Import(
528528
* @param projectId - The Paratext 9 import to copy.
529529
* @param name - User-facing name for the copy, chosen in the copy dialog.
530530
* @param description - Optional user-facing description for the copy.
531-
* @throws {Error} If no project with the given ID exists, or if it is not a Paratext 9 import -
532-
* only frozen imports need an editable copy; ordinary projects are already editable.
531+
* @throws {Error} If no project with the given ID exists.
532+
* @throws {Error} If the project is not a Paratext 9 import - only frozen imports need an editable
533+
* copy; ordinary projects are already editable.
533534
* @throws {SyntaxError} If the project's storage value contains invalid JSON.
534535
* @throws If storage reads or writes reject for a non-ENOENT reason. On an index-write failure the
535536
* new record rolls back as in {@link createProject}.

0 commit comments

Comments
 (0)