// Compile all regular expressions
int r = pakfire_parser_compile_regexes(parser);
- if (r)
+ if (r) {
+ DEBUG(parser->pakfire, "Could not compile regular expressions: %m\n");
goto ERROR;
+ }
// Expand all variables
r = pakfire_parser_expand_variables(parser, namespace, &buffer);
- if (r)
+ if (r) {
+ DEBUG(parser->pakfire, "Failed to expand variables in '%s': %m\n", value);
goto ERROR;
+ }
// Expand all commands
if (parser->flags & PAKFIRE_PARSER_FLAGS_EXPAND_COMMANDS) {
r = pakfire_parser_expand_commands(parser, &buffer);
- if (r)
+ if (r) {
+ DEBUG(parser->pakfire, "Failed to expand commands in '%s': %m\n", value);
goto ERROR;
+ }
}
return buffer;