html-ui.error-text
- description
- The text of a response that is not 200 as an error (empty for 200)
- type
Fn(response: @html-ui.response) -> List<@html.node>
- expression
fn(response$0) =>
match @core.equal(left: $0.status, right: 200) {
true =>
[],
false =>
[
@html.element(name: "pre", attributes: [{name: "class", value: "error"}], children: [@html.text(text: $0.text)])
]
}- visibility
- public
html-ui.error-text (project html-ui, branch remove-deploy-button, snapshot dt2aPjQUrIkBOz-2trTI6JX-dnOvCsvqp9O2GMbdWn8)
id: rCEsQtymxxVqaNpU0qtZ1SsjOBu2rweEFs5dTR4uSYI
content hash: mLm4Xv-dtYnpSvltB-IiHpNHaih8G8Is0eaGXRu-kzs