Print a newline after errors in the JSON UI.

This makes them just a little easier to read.
This commit is contained in:
Tim Allen 2018-05-16 23:26:05 +10:00
parent 7325ad216c
commit 0af53fb0dc

View File

@ -460,7 +460,7 @@ void JsonUI::parse_requests(EventMode mode)
}
catch (runtime_error& error)
{
write(2, format("error while handling requests '{}': '{}'",
write(2, format("error while handling requests '{}': '{}'\n",
m_requests, error.what()));
// try to salvage request by dropping its first line
pos = std::min(m_requests.end(), find(m_requests, '\n')+1);