Skip to content

Commit

Permalink
Update message
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Feb 25, 2023
1 parent dfaa9a5 commit d0643ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbs/bulkblocks2.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,7 @@ func checkBlockExist(bName, hash string) error {
}
defer tx.Rollback()
if rid, err := GetID(tx, "BLOCKS", "block_id", "block_name", bName); err == nil && rid != 0 {
err := errors.New(fmt.Sprintf("Block %s already exists", bName))
msg := "Data already exist in DBS"
msg := fmt.Sprintf("Block %s already exists", bName)
return Error(err, BlockAlreadyExists, msg, "dbs.bulkblocks.checkBlockExist")
}
return nil
Expand Down

0 comments on commit d0643ba

Please sign in to comment.