github.com/hashicorp/packer@v1.14.3/internal/hcp/registry/errors.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  
     4  package registry
     5  
     6  // ErrBuildAlreadyDone is the error returned by an HCP handler when a build cannot be started since it's already
     7  // marked as DONE.
     8  type ErrBuildAlreadyDone struct {
     9  	Message string
    10  }
    11  
    12  // Error returns the message for the ErrBuildAlreadyDone type
    13  func (b ErrBuildAlreadyDone) Error() string {
    14  	return b.Message
    15  }