File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 8
8
- Added ` assert_error_covers ` .
9
9
- Add more logs (gh-326 ).
10
10
- Add ` justrun ` helper as a tarantool runner and output catcher (gh-365 ).
11
+ - Changed error message for too long Unix domain socket paths (gh-341 ).
11
12
12
13
## 1.0.1
13
14
Original file line number Diff line number Diff line change @@ -164,8 +164,9 @@ function Server:initialize()
164
164
local max_unix_socket_path = {linux = 107 , other = 103 }
165
165
local system = os.execute (' [ $(uname) = Linux ]' ) == 0 and ' linux' or ' other'
166
166
if parsed_net_box_uri .unix :len () > max_unix_socket_path [system ] then
167
- error ((' Net box URI must be <= max Unix domain socket path length (%d chars)' )
168
- :format (max_unix_socket_path [system ]))
167
+ error ((' Unix domain socket path cannot be longer than %d chars. ' ..
168
+ ' Current path is: %s' ):format (max_unix_socket_path [system ],
169
+ parsed_net_box_uri .unix ))
169
170
end
170
171
end
171
172
if type (self .net_box_uri ) == ' table' then
Original file line number Diff line number Diff line change @@ -286,8 +286,8 @@ g.test_max_unix_socket_path_exceeded = function()
286
286
287
287
t .assert_equals (string.len (net_box_uri ), max_unix_socket_path [system ] + 1 )
288
288
t .assert_error_msg_contains (
289
- string.format (' Net box URI must be <= max Unix domain socket path length (%s chars) ' ,
290
- max_unix_socket_path [system ]),
289
+ string.format (' Unix domain socket path cannot be longer than %d ' ..
290
+ ' chars. Current path is: ' , max_unix_socket_path [system ]),
291
291
Server .new , Server , {
292
292
command = command ,
293
293
workdir = workdir ,
You can’t perform that action at this time.
0 commit comments