Invalid branch or locale displays proper error message. Fixes #115

It's my first attempt to this codebase. Sorry for my terrible english and verbose variables ;(