diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-23 11:29:32 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-23 11:29:32 +0100 |
commit | 0365e1bb27e6bedcba4b9b62baaa08d60115ca9a (patch) | |
tree | a4fe3b085a45c513324f88be460ee80affe8643e /examples/simple-config-reader.lua | |
parent | db1f5ae853270af10ed6d9c4b29d30721d6f4126 (diff) | |
download | clod-0365e1bb27e6bedcba4b9b62baaa08d60115ca9a.tar.gz |
Reading of settings back now works
Diffstat (limited to 'examples/simple-config-reader.lua')
-rw-r--r-- | examples/simple-config-reader.lua | 6 |
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) |