Khác biệt giữa bản sửa đổi của “Mô đun:Arguments”
n Đã thay đổi mức khóa của “Mô đun:Arguments” ([Sửa đổi=Cấm mọi thành viên (trừ bảo quản viên)] (vô thời hạn) [Di chuyển=Cấm mọi thành viên (trừ bảo quản viên)] (vô thời hạn)) |
n 1 revision imported |
||
| Dòng 167: | Dòng 167: | ||
if type(tidyVal) ~= 'function' then | if type(tidyVal) ~= 'function' then | ||
error( | error( | ||
" | "bad value assigned to option 'valueFunc'" | ||
.. '( | .. '(function expected, got ' | ||
.. type(tidyVal) | .. type(tidyVal) | ||
.. ')', | .. ')', | ||
| Dòng 270: | Dòng 270: | ||
if options.readOnly then | if options.readOnly then | ||
error( | error( | ||
' | 'could not write to argument table key "' | ||
.. tostring(key) | .. tostring(key) | ||
.. '"; | .. '"; the table is read-only', | ||
2 | 2 | ||
) | ) | ||
elseif options.noOverwrite and args[key] ~= nil then | elseif options.noOverwrite and args[key] ~= nil then | ||
error( | error( | ||
' | 'could not write to argument table key "' | ||
.. tostring(key) | .. tostring(key) | ||
.. '"; | .. '"; overwriting existing arguments is not permitted', | ||
2 | 2 | ||
) | ) | ||