common-stuff
    Preparing search index...

    Function ensureError

    • Returns value if it is instance of error otherwise wraps value to new Error instance.

      Parameters

      • value: unknown

        Error or other value

      Returns Error

      value if it instance of error Error otherwise wraps value to new Error instance