Skip to content

Commit ee60f3f

Browse files
committed
Dangerfile: show a relative path to a pom.xml in a message for sortpom.
Addressed to #537
1 parent 4892ba1 commit ee60f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Dangerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ if File.file?(sortpom_output)
194194
unless errors.empty?
195195
link = 'https://github.com/php-coder/mystamps/wiki/sortpom'
196196
errors_cnt = errors.size()
197-
error_msgs = errors.join("</li>\n<li>")
197+
error_msgs = errors.map { |msg| msg.sub(pwd, '') }.join("</li>\n<li>")
198198
if errors_cnt == 1
199199
fail("sortpom-maven-plugin reported about #{errors_cnt} error:\n"\
200200
"<ul><li>#{error_msgs}</li></ul>\n"\

0 commit comments

Comments
 (0)