mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
Add missing error treatment
This commit is contained in:
parent
946e5cf34c
commit
77b6402e77
|
@ -236,7 +236,9 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
if len(users) == 0 {
|
if len(users) == 0 {
|
||||||
|
|
||||||
person, err := getPersonByRest(remoteStargazer, starReceiver, ctx)
|
person, err := getPersonByRest(remoteStargazer, starReceiver, ctx)
|
||||||
|
if err != nil {
|
||||||
|
panic(fmt.Errorf("getting user failed: %v", err))
|
||||||
|
}
|
||||||
// create user
|
// create user
|
||||||
// ToDo: We need a remote server with federation enabled to properly test this
|
// ToDo: We need a remote server with federation enabled to properly test this
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue