...

Source file src/github.com/redhat-developer/odo/pkg/logs/errors.go

Documentation: github.com/redhat-developer/odo/pkg/logs

     1  package logs
     2  
     3  import (
     4  	"fmt"
     5  
     6  	odolabels "github.com/redhat-developer/odo/pkg/labels"
     7  )
     8  
     9  type InvalidModeError struct {
    10  	mode string
    11  }
    12  
    13  func (e InvalidModeError) Error() string {
    14  	return fmt.Sprintf("invalid mode %q; valid modes are %q, %q, and %q", e.mode, odolabels.ComponentDevMode, odolabels.ComponentDeployMode, odolabels.ComponentAnyMode)
    15  }
    16  

View as plain text