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

    Function reportedErrors

    • The messages of an error envelope sent with a 2xx status — an object with an errors or error key ({"errors":[{"code":"ORA-00942","message":"…"}]}, {"error":["…"]}, {"error":"…"}) — joined, cleaned and cut (serverTextForMessage: on one line, without control or bidi characters, at most 200 characters); undefined when res is no such envelope. Taken as rows, an error list read as "no data for that station". scrub removes credentials from the joined text first (the client passes the engine's, which knows the base URL's userinfo).

      Parameters

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

      Returns string | undefined