Skip to content

Commit efb5f0d

Browse files
committed
Improved name of function that generates call status
1 parent d4eb22a commit efb5f0d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

rockspecs/mach-git-0.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build = {
2121
['mach.unexpected_call_error'] = 'mach/unexpected_call_error.lua',
2222
['mach.unexpected_args_error'] = 'mach/unexpected_args_error.lua',
2323
['mach.out_of_order_call_error'] = 'mach/out_of_order_call_error.lua',
24-
['mach.call_status_message'] = 'mach/call_status_message.lua',
24+
['mach.format_call_status'] = 'mach/format_call_status.lua',
2525
['mach.format_arguments'] = 'mach/format_arguments.lua',
2626
}
2727
}
File renamed without changes.

src/mach/out_of_order_call_error.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
local call_status_message = require 'mach.call_status_message'
1+
local format_call_status = require 'mach.format_call_status'
22
local format_arguments = require 'mach.format_arguments'
33

44
return function(name, args, completed_calls, incomplete_calls, level)
55
local error_message =
66
'out of order function call ' .. name .. format_arguments(args) ..
7-
call_status_message(completed_calls, incomplete_calls)
7+
format_call_status(completed_calls, incomplete_calls)
88

99
error(error_message, level + 1)
1010
end

src/mach/unexpected_args_error.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
local call_status_message = require 'mach.call_status_message'
1+
local format_call_status = require 'mach.format_call_status'
22
local format_arguments = require 'mach.format_arguments'
33

44
return function(name, args, completed_calls, incomplete_calls, level)
55
local error_message =
66
'unexpected arguments ' .. format_arguments(args) .. ' provided to function ' .. name ..
7-
call_status_message(completed_calls, incomplete_calls)
7+
format_call_status(completed_calls, incomplete_calls)
88

99
error(error_message, level + 1)
1010
end

src/mach/unexpected_call_error.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
local call_status_message = require 'mach.call_status_message'
1+
local format_call_status = require 'mach.format_call_status'
22
local format_arguments = require 'mach.format_arguments'
33

44
return function(name, args, completed_calls, incomplete_calls, level)
55
local message =
66
'unexpected function call ' .. name .. format_arguments(args) ..
7-
call_status_message(completed_calls, incomplete_calls)
7+
format_call_status(completed_calls, incomplete_calls)
88

99
error(message, level + 1)
1010
end

0 commit comments

Comments
 (0)