Better error reporting

Change-Id: I36dc5ad3648c5b4ac2cc2c72ba90fec7398090bf
This commit is contained in:
sm
2016-06-24 01:04:33 -07:00
parent 639d82ac7b
commit 45c0af4d1e
2 changed files with 49 additions and 7 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ func (db *DB) Confirm(token string) (string, error) {
)
if err != nil {
return "", verrors.HTTP{
Message: fmt.Sprintf("couldn't update user with token %q", token),
Message: fmt.Sprintf("couldn't update user with token %q: %v", token, err),
Code: http.StatusInternalServerError,
}
}