Actually, it doesn't work like that because the `msg` variable is defined in the if statement, and is not available outside.
I could of course define the variable first, but then I also have to define the `err` variable to be in scope for the entire function.

This is my number one gripe with error handling in go right now :/