Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Display cause of invalid config error #99

Merged
merged 3 commits into from
Oct 12, 2020

Conversation

rreuvekamp
Copy link
Contributor

@rreuvekamp rreuvekamp commented Oct 11, 2020

Hi,

This patch lets the user know the cause of configuration errors, instead of "no user configuration found". Most notably when the configuration file contains invalid JSON. Hopefully fixing #94 and #95.

PS: I only added a check for empty AccessToken and not the other values of the config file, as it seems the application still works without a userID or deviceID.

edit: PS2: I've also included a README fix in a separate commit, because it doesn't deserve its own pull request in my opinion.
Without it, the 'go build' will result in the following error:

go build: cannot write multiple packages to non-directory bin/

With best regards,

Remi

t3chguy and others added 3 commits June 12, 2020 12:54
Without it, the 'go build' will result in the following error:

> go build: cannot write multiple packages to non-directory bin/
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, Thanks!

@t3chguy t3chguy changed the base branch from master to develop October 12, 2020 08:42
@t3chguy t3chguy merged commit ec3ba86 into matrix-org:develop Oct 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants