def problem
import ezx@1.11.0.0/src/ledger/manifest.bend as Manifestimport Base
231# the first problem with the document, or "" when there is none. A syntax error
232# comes first, since a section that did not parse cannot be judged.
233def problem(+bad: String, +miss: String) -> String:
234 Bool.pick(String, String.is_empty(bad),
235 Bool.pick(String, String.is_empty(miss), "", miss ++ " has no hash"),
236 bad)