Fix works, but no tests yet.

This is not  a real "pull request", more of a "code review request".

Also, I haven't been able to figure out testing, and I wonder if someone could walk me through writing tests.
I'm assuming you mean a newline in the output between "You do not have permission" and the next steps instruction. Will fix also kxepal's comment, rebase and push -f.