Skip to content

Commit

Permalink
improve(mcl/json): Slightly improve the error format
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Jan 23, 2025
1 parent 0bb76dd commit 82830be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mcl/src/src/mcl/utils/json.d
Original file line number Diff line number Diff line change
Expand Up @@ -328,5 +328,5 @@ T tryDeserializeFromJsonFile(T)(string path)

return json
.fromJSON!T()
.tryGet("Error deserializing %s. JSON: %s".format(T.stringof.bold, json.toPrettyString().bold));
.tryGet("Error deserializing %s. JSON: \n%s".format(T.stringof.bold, json.toPrettyString().bold));
}

0 comments on commit 82830be

Please sign in to comment.