File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
package tarantool
2
2
3
+ const error_extId = 3
4
+
3
5
// BoxError is a type representing Tarantool `box.error` object: a single
4
6
// MP_ERROR_STACK object with a link to the previous stack error.
5
7
type BoxError struct {
Original file line number Diff line number Diff line change @@ -48,3 +48,7 @@ func msgpackIsString(code byte) bool {
48
48
return msgpcode .IsFixedString (code ) || code == msgpcode .Str8 ||
49
49
code == msgpcode .Str16 || code == msgpcode .Str32
50
50
}
51
+
52
+ func init () {
53
+ msgpack .RegisterExt (error_extId , & BoxError {})
54
+ }
Original file line number Diff line number Diff line change @@ -52,3 +52,7 @@ func msgpackIsString(code byte) bool {
52
52
return msgpcode .IsFixedString (code ) || code == msgpcode .Str8 ||
53
53
code == msgpcode .Str16 || code == msgpcode .Str32
54
54
}
55
+
56
+ func init () {
57
+ msgpack .RegisterExt (error_extId , (* BoxError )(nil ))
58
+ }
You can’t perform that action at this time.
0 commit comments