summaryrefslogtreecommitdiff
path: root/examples/simple-config-reader.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple-config-reader.lua')
-rw-r--r--examples/simple-config-reader.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/simple-config-reader.lua b/examples/simple-config-reader.lua
index b1b4719..823d285 100644
--- a/examples/simple-config-reader.lua
+++ b/examples/simple-config-reader.lua
@@ -12,7 +12,11 @@ project.name "Clod"
project.head "refs/heads/master"
]]
-conf = clod.parse(configuration)
+conf, err = clod.parse(configuration)
+if not conf then
+ error(err)
+end
print("Project name is", conf.settings["project.name"])
print("Project HEAD is", conf.settings.project.head)
+print("Unknown entry is", conf.settings.project.isnil)