diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-23 11:37:19 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-23 11:37:19 +0100 |
commit | 493d34935bea7313e8d0b753ffacc3a49fc6ea22 (patch) | |
tree | 42bfde0fbb25e8bec821f1a33e972458ea21350d /examples | |
parent | 0365e1bb27e6bedcba4b9b62baaa08d60115ca9a (diff) | |
download | clod-493d34935bea7313e8d0b753ffacc3a49fc6ea22.tar.gz |
Basic value setting now works
Diffstat (limited to 'examples')
-rw-r--r-- | examples/change-setting.lua | 9 |
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()) |