Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 9307c9f

Browse files
authored
Fatal if failing to set script (#456)
1 parent 9320aa6 commit 9307c9f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎internal/script.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ func SetScript(ctx context.Context, doc *enigma.Doc, scriptFilePath string) {
1616
}
1717

1818
err = doc.SetScript(ctx, string(loadScript))
19+
20+
if err != nil {
21+
log.Fatalln("failed to set script: ", err)
22+
}
1923
}

0 commit comments

Comments
 (0)
⌂ 换网址