1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00

Fix small error in old config handling

This commit is contained in:
Pavel Labath 2010-11-23 16:45:42 +01:00
parent 4ab7f6d0d1
commit cc98b26119

View File

@ -2658,8 +2658,8 @@ void load_config_file()
catch(lua::syntax_error &e) {
#define SYNTAX_ERR_READ_CONF "Syntax error (%s) while reading config file. "
#ifdef BUILD_OLD_CONFIG
NORM_ERR(_(SYNTAX_ERR_READ_CONF));
NORM_ERR(_("Assuming it's in old syntax and attempting conversion."), e.what());
NORM_ERR(_(SYNTAX_ERR_READ_CONF), e.what());
NORM_ERR(_("Assuming it's in old syntax and attempting conversion."));
// the strchr thingy skips the first line (#! /usr/bin/lua)
l.loadstring(strchr(convertconf, '\n'));
l.pushstring(current_config.c_str());