github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/actor/actionerror/staging_timeout_error.go (about)

     1  package actionerror
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  // StagingTimeoutError is returned when staging timeout is reached waiting for
     9  // an application to stage.
    10  type StagingTimeoutError struct {
    11  	AppName string
    12  	Timeout time.Duration
    13  }
    14  
    15  func (e StagingTimeoutError) Error() string {
    16  	return fmt.Sprintf("Timed out waiting for application '%s' to stage", e.AppName)
    17  }