Skip to content

Commit abc1855

Browse files
committed
improve err format
1 parent 944a8cb commit abc1855

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dangerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ else
119119
error_msgs = errors.join("\n")
120120
if errors_cnt == 1
121121
fail("license plugin reports about #{errors_cnt} error:\n"\
122-
"#{error_msgs}\n"\
123-
"Please, fix it by executing `mvn license:format`.\n"\
122+
"```\n#{error_msgs}\n```\n"\
123+
"Please, fix it by executing `mvn license:format`\n"\
124124
"See also: <a href=\"#{link}\">#{link}</a>")
125125
elsif errors_cnt > 1
126126
fail("license plugin reports about #{errors_cnt} errors:\n"\
127-
"#{error_msgs}\n"\
128-
"Please, fix them by executing `mvn license:format`.\n"\
127+
"```\n#{error_msgs}\n```\n"\
128+
"Please, fix them by executing `mvn license:format`\n"\
129129
"See also: <a href=\"#{link}\">#{link}</a>")
130130
end
131131
end
@@ -158,13 +158,13 @@ else
158158
error_msgs = errors.join("\n")
159159
if errors_cnt == 1
160160
fail("sortpom plugin reports about #{errors_cnt} error:\n"\
161-
"#{error_msgs}\n"\
162-
"Please, fix it by executing `mvn sortpom:sort`.\n"\
161+
"```\n#{error_msgs}\n```\n"\
162+
"Please, fix it by executing `mvn sortpom:sort`\n"\
163163
"See also: <a href=\"#{link}\">#{link}</a>")
164164
elsif errors_cnt > 1
165165
fail("sortpom plugin reports about #{errors_cnt} errors:\n"\
166-
"#{error_msgs}\n"\
167-
"Please, fix them by executing `mvn sortpom:sort`.\n"\
166+
"```\n#{error_msgs}\n```\n"\
167+
"Please, fix them by executing `mvn sortpom:sort`\n"\
168168
"See also: <a href=\"#{link}\">#{link}</a>")
169169
end
170170
end

0 commit comments

Comments
 (0)