Skip to content

Commit 6b04276

Browse files
committed
report bad boz
1 parent 074296b commit 6b04276

File tree

1 file changed

+1
-1
lines changed
  • src/Language/Fortran/AST/Literal

1 file changed

+1
-1
lines changed

src/Language/Fortran/AST/Literal/Boz.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ parseBoz s =
9595
| p' == 'x' = Just $ BozPrefixZ Nonconforming
9696
| otherwise = Nothing
9797
where p' = Char.toLower p
98-
errInvalid = error "Language.Fortran.AST.BOZ.parseBoz: invalid BOZ string"
98+
errInvalid = error ("Language.Fortran.AST.BOZ.parseBoz: invalid BOZ string: " <> show s)
9999
-- | Remove the first and last elements in a list.
100100
shave = tail . init
101101

0 commit comments

Comments
 (0)