Fix bug when endpoint is invalid or not configured proeprly and fails lookup #171

Merged
prologic merged 2 commits from fix_endpoint_crash into master 5 months ago
Owner

Fixes #169

This now behaves like this:

/Users/prologic/Projects/saltyim/saltyim # ./salty-chat write prologic@mills.io test
WARN[0000] error looking up user endpoint                error="error looking up user testing123@shortcircuit.net.au: non-2xx response received: 404 Not Found"
error initializing client: unable to find your endpoint for testing123@shortcircuit.net.au
/Users/prologic/Projects/saltyim/saltyim #
Fixes #169 This now behaves like this: ``` /Users/prologic/Projects/saltyim/saltyim # ./salty-chat write prologic@mills.io test WARN[0000] error looking up user endpoint error="error looking up user testing123@shortcircuit.net.au: non-2xx response received: 404 Not Found" error initializing client: unable to find your endpoint for testing123@shortcircuit.net.au /Users/prologic/Projects/saltyim/saltyim # ```
prologic added 1 commit 5 months ago
prologic added 1 commit 5 months ago
32c3618a3f
Add a unit test for this case
Ghost approved these changes 5 months ago
prologic merged commit 9c5fec5caf into master 5 months ago
prologic deleted branch fix_endpoint_crash 5 months ago
continuous-integration/drone/pr Build is passing
The pull request has been merged as 9c5fec5caf.
Sign in to join this conversation.
Loading…
There is no content yet.