This is an archive of the discontinued LLVM Phabricator instance.

[clang] Include the error message in file reading error diagnostic
ClosedPublic

Authored by hans on Mar 17 2023, 3:05 AM.

Details

Summary

in order to provide as much information as possible to the user. The diagnostic will now look like for example:

error: error reading '/tmp/foo.c': Permission denied

(This addresses a FIXME from 2019, 9ef6c49baf45)

Diff Detail

Event Timeline

hans created this revision.Mar 17 2023, 3:05 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 17 2023, 3:05 AM
hans requested review of this revision.Mar 17 2023, 3:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 3:05 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
thakis accepted this revision.Mar 17 2023, 3:59 AM
thakis added a subscriber: thakis.

Lg

This revision is now accepted and ready to land.Mar 17 2023, 3:59 AM

(if the presubmit is related, maybe some flang test needs updating? Weird that flang uses clang's diags.)

hans added a comment.Mar 17 2023, 5:47 AM

(if the presubmit is related, maybe some flang test needs updating? Weird that flang uses clang's diags.)

The presubmit errors look unrelated and the flang tests seem fine locally.

This revision was landed with ongoing or failed builds.Mar 17 2023, 5:48 AM
This revision was automatically updated to reflect the committed changes.