failed-report ( error file what -- status )


Vocabulary
mason.report

Inputs
erroran object
filean object
whatan object


Outputs
statusan object


Definition


:: failed-report ( error file what -- status )
[
error
[ error. ] with-string-writer :> error file utf8 400
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
] with-report status-error ;