Skip to content

Commit 8c37d77

Browse files
glennslcknitt
andauthored
refactor(error): less magic needed
Co-authored-by: Christoph Knittel <christoph@knittel.cc>
1 parent dfff837 commit 8c37d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core__Error.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ module URIError = {
3636

3737
external raise: t => 'a = "%raise"
3838

39-
let panic = msg => make(j`Panic! $msg`)->Obj.magic->raise
39+
let panic = msg => make(`Panic! ${msg}`)->raise

0 commit comments

Comments
 (0)