This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj] Improve error message when output file cannot be opened
ClosedPublic

Authored by sbc100 on Mar 24 2017, 1:42 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Mar 24 2017, 1:42 PM
davide accepted this revision.Mar 24 2017, 1:49 PM

Can you add a testcase to show the difference?

This revision is now accepted and ready to land.Mar 24 2017, 1:49 PM
sbc100 updated this revision to Diff 93288.Mar 28 2017, 1:10 PM
  • add test
  • Merge remote-tracking branch 'origin/master' into yaml2obj_error
  • update expected output
sbc100 retitled this revision from yaml2obj: Prefix errors with "Error: " to match obj2yaml to yaml2obj: Improve error message when output file cannot be opened.Mar 28 2017, 1:11 PM

While working on this I noticed that the other tests in test/yaml2obj/ don't even run because they have the wrong extension. I upload a separate change for that

sbc100 retitled this revision from yaml2obj: Improve error message when output file cannot be opened to [yaml2obj] Improve error message when output file cannot be opened.Mar 28 2017, 4:16 PM

This change should wait until D31436 lands

sbc100 added a comment.Apr 3 2017, 3:27 PM

Could you land this for me? (I'm not yet a committer)

davide added a comment.Apr 5 2017, 7:30 AM

Sure, I'll commit this in a sec.

This revision was automatically updated to reflect the committed changes.