mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +00:00
13 lines
260 B
Lua
13 lines
260 B
Lua
return function(index: number, type: string, value: any)
|
|
if typeof(value) ~= type then
|
|
console.error(
|
|
string.format(
|
|
"Expected argument #%d to be of type %s, got %s",
|
|
index,
|
|
type,
|
|
console.format(value)
|
|
)
|
|
)
|
|
process.exit(1)
|
|
end
|
|
end
|