diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-12-01 10:14:26 +0000 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-12-01 10:14:26 +0000 |
commit | 6f000e980155d6651b01c9b4dbdb316e9f501a45 (patch) | |
tree | 6a85e72494ab48d6f43e0f72ddab7b03d52e4806 /cmd/create-account | |
parent | f009e541816cbae1519fede2b40b0af68020b3ab (diff) |
Make `create-account` more verbose
Diffstat (limited to 'cmd/create-account')
-rw-r--r-- | cmd/create-account/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/create-account/main.go b/cmd/create-account/main.go index c8e239f2..15b043ed 100644 --- a/cmd/create-account/main.go +++ b/cmd/create-account/main.go @@ -177,7 +177,7 @@ func sharedSecretRegister(sharedSecret, serverURL, localpart, password string, a defer regResp.Body.Close() // nolint: errcheck if regResp.StatusCode < 200 || regResp.StatusCode >= 300 { body, _ = io.ReadAll(regResp.Body) - return "", fmt.Errorf(gjson.GetBytes(body, "error").Str) + return "", fmt.Errorf("got HTTP %d error from server: %s", regResp.StatusCode, string(body)) } r, err := io.ReadAll(regResp.Body) if err != nil { |