This is an automated email from the ASF dual-hosted git repository.

hez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 54960df37 fix: Change failed connection test status from 500 to 400 
(#5076)
54960df37 is described below

commit 54960df37c80a53bb7a242311ea8a92be12f6154
Author: Camille Teruel <[email protected]>
AuthorDate: Tue May 2 19:56:36 2023 +0200

    fix: Change failed connection test status from 500 to 400 (#5076)
    
    Co-authored-by: Camille Teruel <[email protected]>
---
 backend/server/services/remote/plugin/connection_api.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/server/services/remote/plugin/connection_api.go 
b/backend/server/services/remote/plugin/connection_api.go
index fc21fe206..81b49f5c7 100644
--- a/backend/server/services/remote/plugin/connection_api.go
+++ b/backend/server/services/remote/plugin/connection_api.go
@@ -33,7 +33,7 @@ func (pa *pluginAPI) TestConnection(input 
*plugin.ApiResourceInput) (*plugin.Api
                        Success: false,
                        Message: err.Error(),
                }
-               return &plugin.ApiResourceOutput{Body: body, Status: 500}, nil
+               return &plugin.ApiResourceOutput{Body: body, Status: 400}, nil
        } else {
                body := shared.ApiBody{Success: true}
                return &plugin.ApiResourceOutput{Body: body, Status: 200}, nil

Reply via email to