Skip to content

Conversation

@FlorianBT
Copy link

Also:
Prevent writing to file if no file path is given
Added a trace of the location where the dump file is saved on disk

We could talk about the design decision of implicitly using an url even if none is given (default value of http://localhost:8080/result). I prefer using default values resulting in the less possible implicit code. But this is by design, and it's a detail, to be honest. I followed the same design for the file path on disk (default being ./).

It prevents doErrorStuff() from writing to disk or sending data to server, depending on the values.

Also, being on mac, I couldn't find the log files, even though there was no error logged that could explain why the file creation aborted or failed. I added a trace with the full path. On mac it goes right into the application bundle.
APPNAME.app/Contents/Resources/log/errors/ (or something else after Resources if you set a custom path).

Prevent writing to file if no file path is given
Added a trace of the location where the dump file is saved on disk
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.

1 participant