Skip to content

Report failure to write file#640

Merged
eyal0 merged 4 commits intopcb2gcode:masterfrom
eyal0:failed_open
Oct 14, 2022
Merged

Report failure to write file#640
eyal0 merged 4 commits intopcb2gcode:masterfrom
eyal0:failed_open

Conversation

@eyal0
Copy link
Copy Markdown
Contributor

@eyal0 eyal0 commented Oct 3, 2022

This fixes #639

There's no need to call open with an empty parameter.
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Oct 3, 2022

Coverage Status

Coverage increased (+0.2%) to 69.499% when pulling a0239f2 on eyal0:failed_open into 5a93919 on pcb2gcode:master.

@eyal0 eyal0 force-pushed the failed_open branch 3 times, most recently from 8fc607a to b571bfb Compare October 4, 2022 00:06
eyal0 added 3 commits October 3, 2022 21:25
Previously, if the file couldn't be opened for writing, we would
silently skip writing the file.
This allows us to exit more gracefully so that we get coverage even on
runs when we `terminate()` from an uncaught exception.
@eyal0 eyal0 merged commit b440890 into pcb2gcode:master Oct 14, 2022
@eyal0 eyal0 deleted the failed_open branch October 14, 2022 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

silently fails when output directory (output-dir) does not yet exist

2 participants