github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/store/buildcontrols/errors.go (about)

     1  package buildcontrols
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/pkg/errors"
     7  )
     8  
     9  // A permanent error indicates that the whole build pipeline needs to stop.
    10  // It will never recover, even on subsequent rebuilds.
    11  func IsFatalError(err error) bool {
    12  	cause := errors.Cause(err)
    13  	return cause == context.Canceled
    14  }