Skip to content

Commit

Permalink
Rewrite the error code when the checkpoint isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekap authored Jul 7, 2022
1 parent 4f0f712 commit a74794e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions store/checkpointmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ func (manager *checkPointImpl) GetCheckpoint(checkpointKey string, checkpoint Ch
defer manager.mutex.Unlock()
blob, err := manager.store.Read(checkpointKey)
if err != nil {
if err == ErrKeyNotFound {
return ErrCheckpointNotFound
}
return err
}
err = checkpoint.UnmarshalCheckpoint(blob)
Expand Down

0 comments on commit a74794e

Please sign in to comment.