fix(fmt): error fmt was removing label

This commit is contained in:
rvcas 2023-01-11 19:35:36 -05:00 committed by Lucas
parent eac8f7a80e
commit 3be05b1545
1 changed files with 4 additions and 1 deletions

View File

@ -783,7 +783,10 @@ impl<'comments> Formatter<'comments> {
.append((index + 1).to_doc())
.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)