diff options
author | Vika <vika@fireburn.ru> | 2021-09-26 01:35:00 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-09-26 02:06:55 +0300 |
commit | 572435f7c8e1d613983309eca268c3f87ec5f00f (patch) | |
tree | e0c134c994379e037928f4e20e95f5fbc0bfc0da /src/frontend/templates | |
parent | 13bcfb013c4a5ac5ea15c7ebe04f243431165c03 (diff) | |
download | kittybox-572435f7c8e1d613983309eca268c3f87ec5f00f.tar.zst |
Added file updates and fixed a bug with truncated JSON files
There was a bug where `File::write()` would not write the entire buffer, and this condition was left unchecked by the code. All `File::write()` calls are now replaced with `File::write_all()` which ensures the whole buffer is written to the backing file. Additionally added a smoke check for the file updates. It is in no way comprehensive nor it is able to catch all the possible failures but it's a good way of testing the functionality without way too much hassle.
Diffstat (limited to 'src/frontend/templates')
0 files changed, 0 insertions, 0 deletions