As demonstrated in #550 the error message when reading a bad token file is rather confusing. It would be better if the error was wrapped in a UserError which prefixes the original error message with something like Error while reading token file: or something like that.