Prevent double new lines printed on error

Fixing my own mistakes