Skip to content

Commit ba659fe

Browse files
committed
feat: added tinygo-buffers ErrorCode
1 parent f4a02dd commit ba659fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const (
2323

2424
const (
2525
ErrorCodeBuffersInvalidBufferSize tinygoerrors.ErrorCode = ErrorCodeBuffersStartNumber + iota
26+
ErrorCodeBuffersTooMuchPrecisionDigitsForFloat64
2627
)
2728

2829
const (
@@ -168,6 +169,7 @@ var (
168169
ErrorCodeMessages = map[tinygoerrors.ErrorCode]string{
169170
// Buffers errors
170171
ErrorCodeBuffersInvalidBufferSize: "invalid buffer size",
172+
ErrorCodeBuffersTooMuchPrecisionDigitsForFloat64: "too much precision digits for float64",
171173

172174
// BNO08X errors
173175
ErrorCodeBNO08XPacketBufferIndexOutOfRange: "bno08x packet buffer index out of range",

0 commit comments

Comments
 (0)