This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit ba954375910d199809641d0ea80ab60b77fad4ad Author: PRANSHU RAJ <[email protected]> AuthorDate: Thu Jul 21 11:10:50 2022 +0530 perf: added the error handling added the error handling GetConnection --- plugins/tapd/api/connection.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/tapd/api/connection.go b/plugins/tapd/api/connection.go index 4b1f3609..b582bed7 100644 --- a/plugins/tapd/api/connection.go +++ b/plugins/tapd/api/connection.go @@ -164,5 +164,8 @@ func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, err func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error) { connection := &models.TapdConnection{} err := connectionHelper.First(connection, input.Params) + if err != nil { + return nil, err + } return &core.ApiResourceOutput{Body: connection}, err }
