fix(fmt): error fmt was removing label
This commit is contained in:
parent
eac8f7a80e
commit
3be05b1545
|
@ -783,7 +783,10 @@ impl<'comments> Formatter<'comments> {
|
||||||
.append((index + 1).to_doc())
|
.append((index + 1).to_doc())
|
||||||
.append(suffix)
|
.append(suffix)
|
||||||
}
|
}
|
||||||
UntypedExpr::ErrorTerm { .. } => "error".to_doc(),
|
|
||||||
|
UntypedExpr::ErrorTerm { label: None, .. } => "error".to_doc(),
|
||||||
|
|
||||||
|
UntypedExpr::ErrorTerm { label: Some(l), .. } => docvec!["error(\"", l, "\")"],
|
||||||
};
|
};
|
||||||
|
|
||||||
commented(document, comments)
|
commented(document, comments)
|
||||||
|
|
Loading…
Reference in New Issue