From 168fa02e68356d539ddadfd7d4efd72b83922b31 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 6 Apr 2015 17:49:40 +0200 Subject: [PATCH] for reasons, sometimes libxml2 is not compile, and all tests will fail. detect that. --- scripts/eressea/xmlconf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/eressea/xmlconf.lua b/scripts/eressea/xmlconf.lua index 8ddd09539..9dfdca595 100644 --- a/scripts/eressea/xmlconf.lua +++ b/scripts/eressea/xmlconf.lua @@ -6,5 +6,5 @@ rules='' if config.rules then rules = config.rules .. '/' end -read_xml(confdir .. rules .. 'config.xml', confdir .. rules .. 'catalog.xml') -eressea.config.read(rules .. 'config.json', confdir) +assert(0 == read_xml(confdir .. rules .. 'config.xml', confdir .. rules .. 'catalog.xml'), "could not load XML data, did you compile with LIBXML2 ?") +assert(0 == eressea.config.read(rules .. 'config.json', confdir), "could not read JSON data")