Skip to content

Commit 376e141

Browse files
authored
Merge pull request #799 from jpgeek/improve_error_message_for_inject_failure
Update error message for content already exists case.
2 parents 2d69011 + d1d420e commit 376e141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/actions/inject_into_file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module Actions
2121
# gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
2222
# end
2323
#
24-
WARNINGS = { unchanged_no_flag: 'File unchanged! The supplied flag value not found!' }
24+
WARNINGS = { unchanged_no_flag: 'File unchanged! Either the supplied flag value not found or the content has already been inserted!' }
2525

2626
def insert_into_file(destination, *args, &block)
2727
data = block_given? ? block : args.shift

0 commit comments

Comments
 (0)