Fix extra newline in error message
Merge pull request #2862 from yebblies/fixnewline

Fix extra newline in error message