caught File.open() exception and print error#40
Conversation
|
What are you seeing now that you wanted to catch this error? What was the old behavior vs. new behavior? I am not saying we don't want this, but there are things I dislike:
|
Here's an example of a CHANGELOG.md entry: * [#40](https://github.com/dblock/fui/pull/40): Caught file.open() exception and print error - [@doge1024](https://github.com/doge1024).Generated by 🚫 Danger |
|
What the contributor did: Wrapped process_code and process_xml in begin/rescue to catch any exception when reading/processing a file, print an error message, and call exit -1. The motivation: Almost certainly the same invalid byte sequence in UTF-8 error from issue #37 — the contributor hit it and wanted to at least print a useful message instead of a raw Do we want this? No, and we already did it better:
Verdict: Close it — the underlying issue is resolved properly by #47, and this approach was the wrong fix even as a stopgap. |
No description provided.