Skip to content

Commit

Permalink
update return error value on things
Browse files Browse the repository at this point in the history
Signed-off-by: SammyOina <sammyoina@gmail.com>
  • Loading branch information
SammyOina committed May 25, 2023
1 parent 7cc1dd9 commit 827651b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var (
errDisconnectThing = errors.New("failed to disconnect thing")
errCheckChannels = errors.New("failed to check if channels exists")
errConnectionChannels = errors.New("failed to check channels connections")
errThingNotExist = errors.New("failed to find thing")
errUpdateCert = errors.New("failed to update cert")
)

Expand Down Expand Up @@ -141,7 +142,7 @@ func (bs bootstrapService) Add(ctx context.Context, token string, cfg Config) (C
id := cfg.MFThing
mfThing, err := bs.thing(token, id)
if err != nil {
return Config{}, errors.Wrap(errAddBootstrap, err)
return Config{}, errors.Wrap(errThingNotExist, err)
}

cfg.MFThing = mfThing.ID
Expand Down

0 comments on commit 827651b

Please sign in to comment.