mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 20:05:23 +02:00
fix(edgestack): incorrect response code (#8873)
This commit is contained in:
parent
19eceaf37f
commit
ed279ba65b
4 changed files with 46 additions and 28 deletions
15
api/internal/edge/edgestacks/error.go
Normal file
15
api/internal/edge/edgestacks/error.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package edgestacks
|
||||
|
||||
type InvalidPayloadError struct {
|
||||
msg string
|
||||
}
|
||||
|
||||
func (e *InvalidPayloadError) Error() string {
|
||||
return e.msg
|
||||
}
|
||||
|
||||
func NewInvalidPayloadError(errMsg string) *InvalidPayloadError {
|
||||
return &InvalidPayloadError{
|
||||
msg: errMsg,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue