diff --git a/src/dfmt/formatter.d b/src/dfmt/formatter.d index 04d80bd..c8d63a6 100644 --- a/src/dfmt/formatter.d +++ b/src/dfmt/formatter.d @@ -1561,7 +1561,7 @@ private: else if (astInformation.structInfoSortedByEndLocation .canFind!(st => st.startLocation < current.index && current.index < st.endLocation)) { immutable l2 = indents.indentToMostRecent(tok!"{"); - assert(l2 != -1); + assert(l2 != -1, "Recent '{' is not found despite being in struct initializer"); indentLevel = l2 + 1; } else if (config.dfmt_compact_labeled_statements == OptionalBoolean.f