diff --git a/packages/dig.lua b/packages/dig.lua index 14849c1..62597c9 100644 --- a/packages/dig.lua +++ b/packages/dig.lua @@ -5,4 +5,9 @@ if args[1] == nil then return end -io.write(lns.lookup(args[1]) .. "\n") \ No newline at end of file +result = lns.lookup(args[1]) +if result == nil then + io.write("Not found!\n") +else + io.write(result .. "\n") +end \ No newline at end of file