Function imageUrlRefusalDetail

  • The detail of a refusal that fetchUntrustedImage threw, for a log: which address a host name resolved to, or why it did not resolve. It is not a property of the error, so code that prints or serializes the error for whoever sent the URL (util.inspect shows an error's cause) does not hand it over. undefined for any other value.

    Parameters

    • error: unknown

    Returns ImageUrlRefusalDetail | undefined