@maschinenlesbar.org/ladesaeulenregister-cli
    Preparing search index...

    Function describeArcGisError

    • The human-readable text of an ArcGIS error value, for an error message: a bare string as is, or an {code, message, details} object's message and details joined with "; ". Empty parts and repeats are dropped (the live server sends "message": "" with the reason only in details, and sometimes the same text in both). Every part goes through scrub first (the engine passes its scrub of the base URL's credentials), then is stripped of control characters (sanitizeServerText, which reads at most 16 384 characters of it); the joined text is cut at 500 characters last, so the cut never splits a credential the scrub would have matched whole. The parts are read only until the joined text is past that cut: an envelope of a million details costs no more than one. Returns undefined when nothing readable is left.

      Parameters

      • error: unknown
      • scrub: (text: string) => string = ...

      Returns string | undefined