Skip to content

Commit

Permalink
shortened error message to make it more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
nevrome committed Feb 21, 2024
1 parent 321b2d6 commit b2bc5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Poseidon/Janno.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ checkC14ColsConsistent x =
(False, True, _, _ ) -> E.throwError "Date_Type is not \"C14\", but either \
\Date_C14_Uncal_BP or Date_C14_Uncal_BP_Err are not empty"
(True, _, False, False) -> E.throwError "Date_C14_Labnr, Date_C14_Uncal_BP and Date_C14_Uncal_BP_Err \

Check warning on line 1128 in src/Poseidon/Janno.hs

View check run for this annotation

Codecov / codecov/patch

src/Poseidon/Janno.hs#L1128

Added line #L1128 was not covered by tests
\do not have the same lengths. Date_C14_Labnr can be empty"
\do not have the same lengths"
(True, _, False, True ) -> return x
-- this should be an error, but we have legacy packages with this issue, so it's only a warning
(True, _, True, _ ) -> do
Expand Down

0 comments on commit b2bc5da

Please sign in to comment.