Skip to content

Commit

Permalink
fix err format
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaGiorgadze committed Sep 9, 2023
1 parent eddf4b5 commit 4901623
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mdk/mdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ func AllocPack(data any) (uint64, error) {
case types.ValueTypeString:
offset = AllocString(data.(string), offsetSize)
default:
return 0, fmt.Errorf("unsupported data type %d for allocation", dataType)
err = fmt.Errorf("unsupported data type %s for allocation", dataType)
LogError(err.Error())
return 0, err
}

return utils.PackUI64(dataType, uint32(offset), offsetSize)
Expand Down

0 comments on commit 4901623

Please sign in to comment.