failure-details ( error file what -- xml )


Vocabulary
mason.report

Inputs
erroran object
filean object
whatan object


Outputs
xmlan object


Definition


:: failure-details ( error file what -- xml )
error
[ error. ] with-string-writer :> error file file-tail
:> output
H{ { "output" output } { "what" what } { "error" error } }
T{ xml-chunk
{ seq
V{
""
T{ tag { name ~name~ } { children ~vector~ } }
"\n Build output:\n "
T{ tag { name ~name~ } { children ~vector~ } }
"\n Launcher error:\n "
T{ tag { name ~name~ } { children ~vector~ } }
""
}
}
} interpolate-xml ;