Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ func (app *StdApplication) InitWithApp(appToPass Application) error {
defer func() {
if r := recover(); r != nil {
mu.Lock()
errs = append(errs, fmt.Errorf("panic initializing module %s: %v", name, r))
errs = append(errs, fmt.Errorf("%w %s: %v", ErrModuleInitializationPanic, name, r))
mu.Unlock()
}
}()
Expand Down
13 changes: 7 additions & 6 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ var (
ErrTenantIsolationViolation = errors.New("tenant isolation violation")

// Reload errors
ErrReloadCircuitBreakerOpen = errors.New("reload circuit breaker is open; backing off")
ErrReloadChannelFull = errors.New("reload request channel is full")
ErrReloadInProgress = errors.New("reload already in progress")
ErrReloadStopped = errors.New("reload orchestrator is stopped")
ErrReloadTimeout = errors.New("reload timed out waiting for module")
ErrDynamicReloadNotEnabled = errors.New("dynamic reload not enabled")
ErrReloadCircuitBreakerOpen = errors.New("reload circuit breaker is open; backing off")
ErrReloadChannelFull = errors.New("reload request channel is full")
ErrReloadInProgress = errors.New("reload already in progress")
ErrReloadStopped = errors.New("reload orchestrator is stopped")
ErrReloadTimeout = errors.New("reload timed out waiting for module")
ErrDynamicReloadNotEnabled = errors.New("dynamic reload not enabled")
ErrModuleInitializationPanic = errors.New("panic initializing module")

// Observer/Event emission errors
ErrNoSubjectForEventEmission = errors.New("no subject available for event emission")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/cloudevents/sdk-go/v2 v2.16.2
github.com/cucumber/godog v0.15.1
github.com/fsnotify/fsnotify v1.9.0
github.com/go-chi/chi/v5 v5.2.2
github.com/go-chi/chi/v5 v5.2.5
github.com/golobby/cast v1.3.3
github.com/google/uuid v1.6.0
github.com/robfig/cron/v3 v3.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618=
github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops=
github.com/go-chi/chi/v5 v5.2.5 h1:Eg4myHZBjyvJmAFjFvWgrqDTXFyOzjj7YIm3L3mu6Ug=
github.com/go-chi/chi/v5 v5.2.5/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0=
github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gofrs/uuid v4.3.1+incompatible h1:0/KbAdpx3UXAx1kEOWHJeOkpbgRFGHVgv+CFIY7dBJI=
github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
Expand Down
Loading