From d1d420e3e67a200442d403276ecbb35bf8e21a65 Mon Sep 17 00:00:00 2001 From: Steve Brown Date: Sat, 12 Nov 2022 17:05:26 +0900 Subject: [PATCH] Indicated error might occur when content already exists --- lib/thor/actions/inject_into_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/thor/actions/inject_into_file.rb b/lib/thor/actions/inject_into_file.rb index fd0046b51..2635e7554 100644 --- a/lib/thor/actions/inject_into_file.rb +++ b/lib/thor/actions/inject_into_file.rb @@ -21,7 +21,7 @@ module Actions # gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n") # end # - WARNINGS = { unchanged_no_flag: 'File unchanged! The supplied flag value not found!' } + WARNINGS = { unchanged_no_flag: 'File unchanged! Either the supplied flag value not found or the content has already been inserted!' } def insert_into_file(destination, *args, &block) data = block_given? ? block : args.shift