Function toAgentLines

Describes where and why a test failed, one indented line per message line

string[] toAgentLines(
  object.Throwable throwable
);

Example

toAgentLines returns no lines when the throwable is null

toAgentLines(null).should.equal([]);

Example

toAgentLines returns the location followed by the 2 indented message lines

auto lines = new Exception("Expected: 404\nActual: 200\n", "api.d", 42).toAgentLines;

lines.should.equal(["  at: api.d:42", "  Expected: 404", "  Actual: 200"]);