returnnil,httperror.NotFound("Unable to find an edge stack with the specified identifier inside the database",fmt.Errorf("unable to find the Edge stack from database: %w. Environment name: %s",err,endpoint.Name))
}
returnedgeStack,err
})
iferr!=nil{
varhttpErr*httperror.HandlerError
iferrors.As(err,&httpErr){
returnhttpErr
}
returnhttperror.InternalServerError("Unable to find an edge stack with the specified identifier inside the database",fmt.Errorf("failed to find Edge stack from the database: %w. Environment name: %s",err,endpoint.Name))
returnhttperror.BadRequest("Docker is not supported by this stack",fmt.Errorf("no filename is provided for the Docker endpoint. Environment name: %s",endpoint.Name))
returnhttperror.BadRequest("Kubernetes is not supported by this stack",fmt.Errorf("no filename is provided for the Kubernetes endpoint. Environment name: %s",endpoint.Name))