diff --git a/parser-typechecker/src/Unison/Runtime/Decompile.hs b/parser-typechecker/src/Unison/Runtime/Decompile.hs index a1b1646ce8..00e8c4445a 100644 --- a/parser-typechecker/src/Unison/Runtime/Decompile.hs +++ b/parser-typechecker/src/Unison/Runtime/Decompile.hs @@ -230,7 +230,11 @@ decompileForeign backref topTerms f | Just s <- unwrapSeq f = list' () <$> traverse (decompile backref topTerms) s decompileForeign _ _ (Wrap r _) = - err (BadForeign r) $ bug "" + err (BadForeign r) $ bug text + where + text + | Builtin name <- r = "<" <> name <> ">" + | otherwise = "" decompileBytes :: (Var v) => By.Bytes -> Term v () decompileBytes =