Skip to content

Commit

Permalink
Fix a match-anything constructor interpreted as a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mn200 committed Dec 9, 2024
1 parent cca4d8a commit 4eff095
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prekernel/Feedback.sml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ fun quiet_messages f = Portable.with_flag (emit_MESG, false) f
fun format_err_rec {message, origin_function, origin_structure, source_location} =
String.concat
["at ", origin_structure, ".", origin_function, ":\n",
case source_location of
Loc_Unknown => ""
| _ => locn.toString source_location ^ ":\n",
message]
case source_location of
locn.Loc_Unknown => ""
| _ => locn.toString source_location ^ ":\n",
message]

fun format_ERR err_rec =
String.concat ["\nException raised ", format_err_rec err_rec, "\n"]
Expand Down

0 comments on commit 4eff095

Please sign in to comment.