Skip to content

Commit

Permalink
[fix] 修改报错显示方式
Browse files Browse the repository at this point in the history
  • Loading branch information
huuhghhgyg committed Jun 20, 2024
1 parent 7430415 commit 9744650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function Agent()
local taskname, params = table.unpack(agent.tasksequence[1])
-- 参数验证
if agent.tasks[taskname] == nil then
print(debug.traceback('[' .. agent.type .. agent.id .. '] 错误,没有找到任务'..taskname))
print('[' .. agent.type .. agent.id .. '] 错误,没有找到任务:',taskname)
print(debug.traceback())
os.exit()
end

Expand Down

0 comments on commit 9744650

Please sign in to comment.