Skip to content
Snippets Groups Projects
Commit e8ed8229 authored by Jonah Husson's avatar Jonah Husson
Browse files

Return raw errors

parent bf360a33
No related branches found
No related tags found
2 merge requests!23Release,!22Add continue to error case
......@@ -18,7 +18,7 @@ func (impl *DatabaseImpl) GetUser(userId []byte) (*User, error) {
u := &User{}
err := impl.db.Take(u, "intermediary_id = ?", userId).Error
if err != nil {
return nil, errors.Errorf("Failed to retrieve user with ID %s: %+v", userId, err)
return nil, err
}
return u, nil
}
......@@ -28,7 +28,7 @@ func (impl *DatabaseImpl) GetUserByHash(transmissionRsaHash []byte) (*User, erro
u := &User{}
err := impl.db.Take(u, "transmission_rsa_hash = ?", transmissionRsaHash).Error
if err != nil {
return nil, errors.Errorf("Failed to retrieve user with tRSA hash %s: %+v", transmissionRsaHash, err)
return nil, err
}
return u, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment