error: added `kdb` as default module name
@@ -130,6 +130,7 @@ static ostream & printKDBErrors (ostream & os, parse_t & p)
<< " buffer[12] = '\\0'; strcat(buffer, \"/description\");" << endl
<< " keySetMeta(warningKey, buffer, \"" << p[i]["description"] << "\");" << endl
<< " buffer[12] = '\\0'; strcat(buffer, \"/module\");" << endl
+ << " if (strcmp(module, \"ELEKTRA_MODULE_NAME\") == 0) module = \"kdb\";" << endl
<< " keySetMeta(warningKey, buffer, module);" << endl
<< " buffer[12] = '\\0'; strcat(buffer, \"/file\");" << endl // should be called sourcefile
<< " keySetMeta(warningKey, buffer, file);" << endl
@@ -203,6 +204,7 @@ static ostream & printKDBErrors (ostream & os, parse_t & p)
<< " buffer[12] = '\\0'; strcat(buffer, \"/description\");" << endl
<< " keySetMeta(errorKey, buffer, \"" << p[i]["description"] << "\");" << endl
<< " buffer[12] = '\\0'; strcat(buffer, \"/module\");" << endl
+ << " if (strcmp(module, \"ELEKTRA_MODULE_NAME\") == 0) module = \"kdb\";" << endl
<< " keySetMeta(errorKey, buffer, module);" << endl
<< " buffer[12] = '\\0'; strcat(buffer, \"/file\");" << endl // should be called sourcefile
<< " keySetMeta(errorKey, buffer, file);" << endl
@@ -221,6 +223,7 @@ static ostream & printKDBErrors (ostream & os, parse_t & p)
<< "\");" << endl
<< " keySetMeta(errorKey, \"error/number\", \"" << p[i]["number"] << "\");" << endl
<< " keySetMeta(errorKey, \"error/description\", \"" << p[i]["description"] << "\");" << endl
+ << " if (strcmp(module, \"ELEKTRA_MODULE_NAME\") == 0) module = \"kdb\";" << endl
<< " keySetMeta(errorKey, \"error/module\", module);" << endl
<< " keySetMeta(errorKey, \"error/file\", "
<< "file"
