pulumi/pkg/backend/errors.go
Mikhail Shilkov 6c9556fe78 Add a link to docs for the 409 Conflict error message (#3207)
* Add a link to docs for the 409 Conflict error message

* Formatting
2019-09-10 13:25:08 -07:00

17 lines
567 B
Go

package backend
import (
"fmt"
)
// ConflictingUpdateError represents an error which occurred while starting an update/destroy operation.
// Another update of the same stack was in progress, so the operation got cancelled due to this conflict.
type ConflictingUpdateError struct {
Err error // The error that occurred while starting the operation.
}
func (c ConflictingUpdateError) Error() string {
return fmt.Sprintf("%s\nTo learn more about possible reasons and resolution, visit "+
"https://www.pulumi.com/docs/troubleshooting/#conflict", c.Err.Error())
}