From cb05fb800bf798c9a020dd8a01a0b4fa58ce71da Mon Sep 17 00:00:00 2001 From: KrauseFx Date: Thu, 25 Aug 2016 15:36:46 -0700 Subject: [PATCH] Improve design of warning output --- Dangerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dangerfile b/Dangerfile index a24bd91576..020c11a554 100644 --- a/Dangerfile +++ b/Dangerfile @@ -2,7 +2,7 @@ require "yaml" # Make sure no page got removed if git.diff_for_file("mkdocs.yml") - warn("mkdocs.yml was modified - make sure no modification was made by mistake") + warn("mkdocs.yml was modified - make sure no modification was made by mistake") patch = git.diff_for_file("mkdocs.yml").patch @@ -13,7 +13,7 @@ if git.diff_for_file("mkdocs.yml") lines.each do |current_line| if current_line.start_with?("-") page_name = current_line.match(/\-.*\- (.*)/)[1] - warn("It seems like the page '#{page_name}' got removed from mkdocs.yml, we don't want to remove any public links. Instead please add a redirect to the new page") + warn("It seems like the page #{page_name} got removed from mkdocs.yml, we don't want to remove any public links. Instead please add a redirect to the new page.") end end end