Commit aaee3511 authored by Ben Boeckel's avatar Ben Boeckel

formatting: use extra newlines in the error messages

This conforms to other messages which use a similar format.
parent 6ffab6ea
Pipeline #47017 passed with stage
......@@ -92,7 +92,7 @@ impl Formatting {
{
if !paths.is_empty() {
results.add_error(format!("commit {} is not allowed because the following files {} \
the '{}' check:{}",
the '{}' check:\n{}",
commit,
description,
self.kind,
......@@ -234,7 +234,7 @@ mod test {
assert_eq!(result.errors().len(), 1);
assert_eq!(result.errors()[0],
"commit 220efbb4d0380fe932b70444fe15e787506080b0 is not allowed because the \
following files could not be formatted by the 'simple' check:\
following files could not be formatted by the 'simple' check:\n\
\n - `empty.txt`");
assert_eq!(result.temporary(), false);
assert_eq!(result.allowed(), false);
......@@ -257,7 +257,7 @@ mod test {
assert_eq!(result.errors().len(), 1);
assert_eq!(result.errors()[0],
"commit 220efbb4d0380fe932b70444fe15e787506080b0 is not allowed because the \
following files were created by the 'untracked' check:\
following files were created by the 'untracked' check:\n\
\n - `untracked`");
assert_eq!(result.temporary(), false);
assert_eq!(result.allowed(), false);
......@@ -301,7 +301,7 @@ mod test {
assert_eq!(result.errors().len(), 1);
assert_eq!(result.errors()[0],
"commit e9a08d956553f94e9c8a0a02b11ca60f62de3c2b is not allowed because the \
following files are not formatted according to the 'simple' check:\
following files are not formatted according to the 'simple' check:\n\
\n - `bad.txt`");
assert_eq!(result.temporary(), false);
assert_eq!(result.allowed(), false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment