Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 902e02a

Browse files
author
Noah Lee
authored
Fix to handle an internal error (#433)
1 parent 2695a7b commit 902e02a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: internal/pkg/store/deploymentstatus.go

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func (s *Store) FindDeploymentStatusByID(ctx context.Context, id int) (*ent.Depl
2929
Only(ctx)
3030
if ent.IsNotFound(err) {
3131
return nil, e.NewError(e.ErrorCodeEntityNotFound, err)
32+
} else if err != nil {
33+
return nil, e.NewErrorWithMessage(e.ErrorCodeInternalError, "Failed to find deployment status.", err)
3234
}
3335

3436
return ds, nil

0 commit comments

Comments
 (0)