Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/dub/internal/vibecompat/data/json.d
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@ private void enforceJson(string file = __FILE__, size_t line = __LINE__)(bool co

private void enforceJson(string file = __FILE__, size_t line = __LINE__)(bool cond, lazy string message, string err_file, int err_line)
{
auto errmsg = format("%s(%s): Error: %s", err_file, err_line+1, message);
auto errmsg() { return format("%s(%s): Error: %s", err_file, err_line+1, message); }
static if (__VERSION__ >= 2065) enforceEx!JSONException(cond, errmsg, file, line);
else if (!cond) throw new JSONException(errmsg);
}
Expand Down