@maschinenlesbar.org/regionalatlas-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 server can send "message": "" with the reason only in details, or the same text in both). Every part goes through scrub first (the engine passes its scrub of the base and catalogue URLs' credentials), then sanitizeServerText (which reads at most 16 384 characters of it), so neither that cut nor the caller's never splits a credential the scrub would have matched whole. The parts are read only until the joined text is longer than the message keeps (MAX_MESSAGE_VALUE_LENGTH, the caller's 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