NebulousLabs / Sia-UI

A Graphical Frontend for Sia - https://sia.tech
MIT License
389 stars 109 forks source link

handle `save()` exception in config.json #619

Closed avahowell closed 7 years ago

avahowell commented 7 years ago

This could cause an exception to thrown when Sia-UI starts, since config.js automatically attempts to save when it is first opened and the UI's data directory may not have been created yet.

I also added testing for config.js.