Skip to content

Commit 2c4c83a

Browse files
config: replace err with err.message in validate_uri_field
Follows-up previous commits in scope of config validation. Needed for tarantool#9105 NO_CHANGELOG=<tests change> NO_DOC=<tests change>
1 parent 97bfc2f commit 2c4c83a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/box/lua/config/instance_config.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ local function validate_uri_field(has_login_field, used_to_connect)
196196
if data:find(',') then
197197
w.error('A single URI is expected, not a list of URIs')
198198
end
199-
w.error('Unable to parse an URI: %s', err)
199+
w.error('Unable to parse an URI: %s', err.message)
200200
end
201201
if uri.login ~= nil and has_login_field then
202202
w.error("Login must be set via the 'login' option")
@@ -2351,6 +2351,12 @@ return schema.new('instance_config', schema.record({
23512351
}, {
23522352
default = 'new',
23532353
}),
2354+
box_error_serialize_verbose = schema.enum({
2355+
'old',
2356+
'new',
2357+
}, {
2358+
default = 'new',
2359+
}),
23542360
}),
23552361
}, {
23562362
-- This kind of validation cannot be implemented as the

0 commit comments

Comments
 (0)