Function resolveError

  • Attempt to resolve an error from "thing".

    Parameters

    • thing: string | {
          code?: number;
          error?: string;
          message?: string;
      }

      Thing to attempt to convert to an error.

    Returns ErrorObject