updated comments and logs

This commit is contained in:
pb 2025-05-12 12:21:12 +02:00
parent 484c742c31
commit 063d57d9e7

View File

@ -170,7 +170,7 @@ func (c *AdmiraltyController) CreateAdmiraltySource() {
// @Param execution path string true "execution id of the workflow" // @Param execution path string true "execution id of the workflow"
// @Param peer path string true "peerId of the peer the target points to" // @Param peer path string true "peerId of the peer the target points to"
// @Success 201 // @Success 201
// @router /target/:execution [post] // @router /target/:execution/:peer [post]
func (c *AdmiraltyController) CreateAdmiraltyTarget(){ func (c *AdmiraltyController) CreateAdmiraltyTarget(){
var data map[string]interface{} var data map[string]interface{}
@ -179,7 +179,7 @@ func (c *AdmiraltyController) CreateAdmiraltyTarget(){
if execution == "" || peerId == "" { if execution == "" || peerId == "" {
c.Ctx.Output.SetStatus(400) c.Ctx.Output.SetStatus(400)
c.Data["json"] = map[string]string{"error" : "parameters can be empty"} c.Data["json"] = map[string]string{"error" : "parameters can be empty " + "execution: " + execution + " peer: " + peerId}
c.ServeJSON() c.ServeJSON()
return return
} }