Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
runabol committed Jan 5, 2025
1 parent 0978c78 commit 605997c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (b *brokerProxy) Shutdown(ctx context.Context) error {

func (b *brokerProxy) checkInit() error {
if b.broker == nil {
return errors.New("broker not initialized")
return errors.New("Broker not initialized. You must call engine.Start() first")
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion engine/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (ds *datastoreProxy) WithTx(ctx context.Context, f func(tx datastore.Datast

func (ds *datastoreProxy) checkInit() error {
if ds.ds == nil {
return errors.New("datastore not initialized")
return errors.New("Datastore not initialized. You must call engine.Start() first")
}
return nil
}
Expand Down

0 comments on commit 605997c

Please sign in to comment.