2023-03-02 15:37:05 -05:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-10 15:53:29 -07:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-02 15:37:05 -05:00
|
|
|
|
2022-11-07 14:16:04 -05:00
|
|
|
package registry
|
|
|
|
|
|
2024-01-24 13:17:35 -05:00
|
|
|
// ErrBuildAlreadyDone is the error returned by an HCP handler when a build cannot be started since it's already
|
|
|
|
|
// marked as DONE.
|
2022-11-07 14:16:04 -05:00
|
|
|
type ErrBuildAlreadyDone struct {
|
|
|
|
|
Message string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Error returns the message for the ErrBuildAlreadyDone type
|
|
|
|
|
func (b ErrBuildAlreadyDone) Error() string {
|
|
|
|
|
return b.Message
|
|
|
|
|
}
|