@datapos/datapos-shared
    Preparing search index...

    Function buildFetchError

    • Builds a FetchError from an HTTP response. The response body is eagerly read so it can be included in error logs even after the response stream is closed.

      Parameters

      • response: { status: number; statusText: string; text: () => Promise<string> }
      • message: string
      • locator: string

      Returns Promise<FetchError>