There was an error while loading. Please reload this page.
1 parent b17e603 commit 6f379dbCopy full SHA for 6f379db
src/Main.res
@@ -10,7 +10,6 @@ let getVersion = async () => {
10
11
let handleError = async (~outro, perform) =>
12
try await perform() catch {
13
- | P.Canceled => P.cancel("Canceled.")
14
| Exn.Error(error) =>
15
switch error->Exn.message {
16
| Some(message) => P.Log.error("Error: " ++ message)
@@ -58,4 +57,6 @@ https://www.rescript-lang.org`,
58
57
}
59
60
61
-await run()
+try await run() catch {
+| P.Canceled => P.cancel("Canceled.")
62
+}
0 commit comments