Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Comments

Clearer error on bad token file#230

Merged
itowlson merged 1 commit intodeislabs:mainfrom
itowlson:explain-invalid-token-toml
Sep 9, 2021
Merged

Clearer error on bad token file#230
itowlson merged 1 commit intodeislabs:mainfrom
itowlson:explain-invalid-token-toml

Conversation

@itowlson
Copy link
Contributor

@itowlson itowlson commented Sep 9, 2021

Previously if you had a bad token file (like, one left over from a previous go at Bindle auth) it gave you

Invalid TOML

Error trace:
        1: expected an equals, found eof at line 1 column 41

which didn't help you resolve it.

With this change it gives you:

Invalid configuration: Error loading token file "/home/ivan/.config/bindle/.token": Invalid TOML

which is hopefully enough to track down the problem and decide what you want to do about it.

Fixes #228.

@itowlson itowlson merged commit 9edc12b into deislabs:main Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth token error: Invalid TOML: expected an equals, found eof at line 1 column 41

2 participants