Skip to content

Commit

Permalink
Merge pull request #1570 from shoes/better-warning-on-stray-links
Browse files Browse the repository at this point in the history
Fix warning on stray links

Changelog: bugfix
  • Loading branch information
jasonrclark committed Oct 21, 2018
2 parents 8336256 + b9a8bab commit e7be61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoes-core/lib/shoes/link.rb
Expand Up @@ -76,7 +76,7 @@ def text_block_guard
if @text_block
true
else
@app.warn 'Stray link without TextBlock detected! Links have to be part of a text block like a para or title'
Shoes.logger.warn '`link` was called but not passed to a `para` or `title`. Please make sure all your `link` calls have a home in another text element!'
false
end
end
Expand Down

0 comments on commit e7be61b

Please sign in to comment.