This is an archive of the discontinued LLVM Phabricator instance.

[flang] Improve runtime crash messages
ClosedPublic

Authored by PeteSteinfeld on Mar 11 2022, 2:01 PM.

Details

Summary

Where possible, I added additional information to the messages to help
programmers figure out what went wrong. I also removed all uses of the word
"bad" from the messages since (to me) that implies a moral judgement rather
than a programming error. I replaced it with either "invalid" or "unsupported"
where appropriate.

Diff Detail

Event Timeline

PeteSteinfeld created this revision.Mar 11 2022, 2:01 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 11 2022, 2:01 PM
PeteSteinfeld requested review of this revision.Mar 11 2022, 2:01 PM

I prefer the current usage of "bad".

@klausler, do you also prefer "bad" in all contexts, including for messages related to invalid/unsupported KIND specifications?

@klausler, do you also prefer "bad" in all contexts, including for messages related to invalid/unsupported KIND specifications?

Yes.

Responding to Peter's review comments.

klausler accepted this revision.Mar 11 2022, 7:00 PM
This revision is now accepted and ready to land.Mar 11 2022, 7:00 PM
This revision was automatically updated to reflect the committed changes.