summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/async/jobgraph.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/async/jobgraph.lua b/xmake/modules/async/jobgraph.lua
index b9e9a46da..28126757f 100644
--- a/xmake/modules/async/jobgraph.lua
+++ b/xmake/modules/async/jobgraph.lua
@@ -89,6 +89,8 @@ function jobgraph:add(name, run, opt)
table.insert(groups, job)
end
end
+ else
+ raise("job(%s): has already been added!", name)
end
end