chore: code formatting
This commit is contained in:
@@ -48,7 +48,7 @@ export default async function({login, imports, data, q, account}, {enabled = fal
|
|||||||
if (error.isAxiosError) {
|
if (error.isAxiosError) {
|
||||||
const status = error.response?.status
|
const status = error.response?.status
|
||||||
let description = error.response?.data?.error?.message?.match(/Lighthouse returned error: (?<description>[A-Z_]+)/)?.groups?.description ?? null
|
let description = error.response?.data?.error?.message?.match(/Lighthouse returned error: (?<description>[A-Z_]+)/)?.groups?.description ?? null
|
||||||
if ((status === 429)&&(!description))
|
if ((status === 429) && (!description))
|
||||||
description = 'consider using "plugin_pagespeed_token"'
|
description = 'consider using "plugin_pagespeed_token"'
|
||||||
message = `API returned ${status}${description ? ` (${description})` : ""}`
|
message = `API returned ${status}${description ? ` (${description})` : ""}`
|
||||||
error = error.response?.data ?? null
|
error = error.response?.data ?? null
|
||||||
|
|||||||
Reference in New Issue
Block a user