summaryrefslogtreecommitdiff
path: root/examples/change-setting.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/change-setting.lua')
-rw-r--r--examples/change-setting.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/change-setting.lua b/examples/change-setting.lua
index bff5889..3dd646e 100644
--- a/examples/change-setting.lua
+++ b/examples/change-setting.lua
@@ -14,11 +14,14 @@ project.head "refs/heads/jeff"
other.thing "here"
]]
-conf = clod.parse(input_config)
+conf, err = clod.parse(input_config)
+if not conf then
+ error(err)
+end
conf.settings.project.name = "Clod"
-conf.settings.project.head = "refs/heads/jeff"
+conf.settings.project.head = "refs/heads/master"
conf.settings.project.description = "Demonstration of settings"
-print(conf:serialise())
+io.stdout:write(conf:serialise())