Skip to content

Commit

Permalink
Merge pull request #729 from dancysoft/verbose_xsltproc_error
Browse files Browse the repository at this point in the history
Log useful error message if xsltproc cannot be executed
  • Loading branch information
MalloZup authored Apr 20, 2020
2 parents 80fe7b9 + b61cadf commit 150ebf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libvirt/utils_xslt.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func transformXML(xml string, xslt string) (string, error) {
xmlFile.Name())
transformedXML, err := cmd.Output()
if err != nil {
log.Printf("[ERROR] Failed to run xsltproc (is it installed?)")
return xml, err
}
log.Printf("[DEBUG] Transformed XML with user specified XSLT:\n%s", transformedXML)
Expand Down

0 comments on commit 150ebf0

Please sign in to comment.