mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
fix file::writeToJson
This commit is contained in:
parent
2dbad94e52
commit
1c699c3b04
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ namespace geode::utils::file {
|
|||
template <class T>
|
||||
Result<> writeToJson(ghc::filesystem::path const& path, T const& data) {
|
||||
try {
|
||||
GEODE_UNWRAP(writeString(json::Value(data).dump()));
|
||||
GEODE_UNWRAP(writeString(path, json::Value(data).dump()));
|
||||
return Ok();
|
||||
}
|
||||
catch(std::exception& e) {
|
||||
|
|
Loading…
Reference in a new issue