diff --git a/lib/config/presets/github/index.ts b/lib/config/presets/github/index.ts index 2a781f073aea6e91f4666c0b6c49c6c392b54191..17cddca24dc09170e2c8d2c8b773babe99fc9bca 100644 --- a/lib/config/presets/github/index.ts +++ b/lib/config/presets/github/index.ts @@ -1,6 +1,6 @@ import { PLATFORM_TYPE_GITHUB } from '../../../constants/platforms'; import { logger } from '../../../logger'; -import { ExternalHostError } from '../../../types/error'; +import { ExternalHostError } from '../../../types/errors/external-host-error'; import { Http, HttpOptions } from '../../../util/http'; import { Preset, PresetConfig } from '../common'; import { PRESET_DEP_NOT_FOUND, fetchPreset } from '../util'; diff --git a/lib/config/presets/gitlab/index.ts b/lib/config/presets/gitlab/index.ts index a5f7eb78211cf19670193ed48058f105978334de..0e7f9d0c93fdbacfd57048b3e262b39abf154221 100644 --- a/lib/config/presets/gitlab/index.ts +++ b/lib/config/presets/gitlab/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../../logger'; -import { ExternalHostError } from '../../../types/error'; +import { ExternalHostError } from '../../../types/errors/external-host-error'; import type { GitLabBranch } from '../../../types/platform/gitlab'; import { GitlabHttp } from '../../../util/http/gitlab'; import { Preset, PresetConfig } from '../common'; diff --git a/lib/config/presets/index.ts b/lib/config/presets/index.ts index 3a9eea8fdfe6d134d88de3d1c22e7020a11cba63..249df7e555c6e55b6b3b6a9516f55e795e529055 100644 --- a/lib/config/presets/index.ts +++ b/lib/config/presets/index.ts @@ -1,7 +1,7 @@ import is from '@sindresorhus/is'; import { CONFIG_VALIDATION } from '../../constants/error-messages'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { regEx } from '../../util/regex'; import { RenovateConfig } from '../common'; import * as massage from '../massage'; diff --git a/lib/constants/error-messages.ts b/lib/constants/error-messages.ts index 12ad1164c19456d807a306b5014a3046be25482c..fa4f6e4e307b9b4dc8ac177a60e54aa9ac87ccee 100644 --- a/lib/constants/error-messages.ts +++ b/lib/constants/error-messages.ts @@ -35,6 +35,7 @@ export const MANAGER_NO_PACKAGE_FILES = 'no-package-files'; // Host error export const EXTERNAL_HOST_ERROR = 'external-host-error'; +export const IGNORABLE_HOST_ERROR = 'ignorable-host-error'; // Worker Error export const WORKER_FILE_UPDATE_FAILED = 'update-failure'; diff --git a/lib/datasource/cdnjs/index.ts b/lib/datasource/cdnjs/index.ts index c408bd0d147e71a9296025852283da7d917e2965..a994a6b8c639e8294acb11c3075107f97d0ffc90 100644 --- a/lib/datasource/cdnjs/index.ts +++ b/lib/datasource/cdnjs/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http } from '../../util/http'; import { CachePromise, cacheAble } from '../cache'; import { GetReleasesConfig, ReleaseResult } from '../common'; diff --git a/lib/datasource/crate/index.ts b/lib/datasource/crate/index.ts index 40134c936da8cad0065bfcba38de94b1eed7155c..13d2c000d23652538808b4e3031a2f0371f2fe6d 100644 --- a/lib/datasource/crate/index.ts +++ b/lib/datasource/crate/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { GetReleasesConfig, Release, ReleaseResult } from '../common'; diff --git a/lib/datasource/dart/index.ts b/lib/datasource/dart/index.ts index 4043f1df5b3248cf540bf70420ee39c1ede109c7..241394373b5d7b4bf1ced4a1d2e33d70cdac66de 100644 --- a/lib/datasource/dart/index.ts +++ b/lib/datasource/dart/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http, HttpResponse } from '../../util/http'; import { GetReleasesConfig, ReleaseResult } from '../common'; diff --git a/lib/datasource/docker/index.ts b/lib/datasource/docker/index.ts index 7a9e57c4199f41cb1fe969d841946aa8040ef88b..a295738843c9e3b9b08b8f6f0efd5b86dcfff557 100644 --- a/lib/datasource/docker/index.ts +++ b/lib/datasource/docker/index.ts @@ -6,7 +6,7 @@ import parseLinkHeader from 'parse-link-header'; import wwwAuthenticate from 'www-authenticate'; import { logger } from '../../logger'; import { HostRule } from '../../types'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import * as hostRules from '../../util/host-rules'; import { Http, HttpResponse } from '../../util/http'; diff --git a/lib/datasource/galaxy/index.ts b/lib/datasource/galaxy/index.ts index a76942dfd4c43fefc57e8241e2460c739cfb604f..14c67e18832feb9a1e76ccab9af0a9c343ce4b4a 100644 --- a/lib/datasource/galaxy/index.ts +++ b/lib/datasource/galaxy/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { GetReleasesConfig, Release, ReleaseResult } from '../common'; diff --git a/lib/datasource/gradle-version/index.ts b/lib/datasource/gradle-version/index.ts index 624bb27b5ea89e5ff795f0ef8f003a5505de14d0..f7ebc86dac1b2ffe8120f45df44b95e5d27781de 100644 --- a/lib/datasource/gradle-version/index.ts +++ b/lib/datasource/gradle-version/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http } from '../../util/http'; import { regEx } from '../../util/regex'; import { GetReleasesConfig, ReleaseResult } from '../common'; diff --git a/lib/datasource/helm/index.ts b/lib/datasource/helm/index.ts index 5ba8ba238fa10e3056c9f34fe2183982c34a3204..24a1910d78937be9c4a44166bfb2ee78d44dc2e7 100644 --- a/lib/datasource/helm/index.ts +++ b/lib/datasource/helm/index.ts @@ -1,7 +1,7 @@ import yaml from 'js-yaml'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { ensureTrailingSlash } from '../../util/url'; diff --git a/lib/datasource/hex/index.ts b/lib/datasource/hex/index.ts index c619cbffc0ba13fb7d502dec4697b6e6789c5513..e0ce145c7b0868114547b9cab81ab7ef697856c0 100644 --- a/lib/datasource/hex/index.ts +++ b/lib/datasource/hex/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http } from '../../util/http'; import { GetReleasesConfig, ReleaseResult } from '../common'; diff --git a/lib/datasource/index.spec.ts b/lib/datasource/index.spec.ts index 34aa6531a7a9bc69328cda31d2c1e5b66bfc11c0..160a5bb30f50a086dfcb3949c34d2b0d8b1e2eca 100644 --- a/lib/datasource/index.spec.ts +++ b/lib/datasource/index.spec.ts @@ -1,6 +1,6 @@ import { mocked } from '../../test/util'; import { EXTERNAL_HOST_ERROR } from '../constants/error-messages'; -import { ExternalHostError } from '../types/error'; +import { ExternalHostError } from '../types/errors/external-host-error'; import { loadModules } from '../util/modules'; import * as datasourceDocker from './docker'; import * as datasourceGithubTags from './github-tags'; diff --git a/lib/datasource/index.ts b/lib/datasource/index.ts index dba7f32e5fef06c1efdb58cbfb6e45efcdfd9a4a..63e982127efa6ef50bd842dfd62515bb5884a591 100644 --- a/lib/datasource/index.ts +++ b/lib/datasource/index.ts @@ -1,7 +1,7 @@ import is from '@sindresorhus/is'; import _ from 'lodash'; import { logger } from '../logger'; -import { ExternalHostError } from '../types/error'; +import { ExternalHostError } from '../types/errors/external-host-error'; import * as runCache from '../util/cache/run'; import { clone } from '../util/clone'; import * as allVersioning from '../versioning'; diff --git a/lib/datasource/maven/util.ts b/lib/datasource/maven/util.ts index bb03867e9a390ff1fa47f8d69c7cfe4daf192277..b80125d5fb5544abe4aa5cb654b5af72ea4a6f55 100644 --- a/lib/datasource/maven/util.ts +++ b/lib/datasource/maven/util.ts @@ -1,6 +1,6 @@ import url from 'url'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http } from '../../util/http'; import { MAVEN_REPO, id } from './common'; diff --git a/lib/datasource/npm/get.spec.ts b/lib/datasource/npm/get.spec.ts index ec305f257982ecc0099f1f7e14660a3a552284a4..fb80cbfe541dd41aa84482b4c251ef209ecee61a 100644 --- a/lib/datasource/npm/get.spec.ts +++ b/lib/datasource/npm/get.spec.ts @@ -1,6 +1,6 @@ import * as httpMock from '../../../test/httpMock'; import { getName } from '../../../test/util'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { getDependency, resetMemCache } from './get'; import { setNpmrc } from './npmrc'; diff --git a/lib/datasource/npm/get.ts b/lib/datasource/npm/get.ts index dee919732af7e72285a0d4ff6d027136c371de16..2dc1a9047dec7ee2e5fa6fc7e185a52b0530f4a9 100644 --- a/lib/datasource/npm/get.ts +++ b/lib/datasource/npm/get.ts @@ -6,7 +6,7 @@ import moment from 'moment'; import registryAuthToken from 'registry-auth-token'; import getRegistryUrl from 'registry-auth-token/registry-url'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { find } from '../../util/host-rules'; import { Http, HttpOptions } from '../../util/http'; diff --git a/lib/datasource/packagist/index.ts b/lib/datasource/packagist/index.ts index 7fce259e40b1d5e7e3f343cc6f33bfb913b1b6b5..e0cdfc57ec694cc67d5ea1f0a84b80db562c3b22 100644 --- a/lib/datasource/packagist/index.ts +++ b/lib/datasource/packagist/index.ts @@ -2,7 +2,7 @@ import URL from 'url'; import pAll from 'p-all'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import * as runCache from '../../util/cache/run'; import * as hostRules from '../../util/host-rules'; diff --git a/lib/datasource/pod/index.ts b/lib/datasource/pod/index.ts index 391719f73187cb3e7d924db3428965f2bed96161..00b6853cabbc285de9937daef46fbdc801d91c09 100644 --- a/lib/datasource/pod/index.ts +++ b/lib/datasource/pod/index.ts @@ -1,6 +1,6 @@ import crypto from 'crypto'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { GithubHttp } from '../../util/http/github'; diff --git a/lib/datasource/repology/index.ts b/lib/datasource/repology/index.ts index 7af17eb7753cff4aa5c456a19ea24c7f81a7dca4..784b72952e3c07ea234ce95fb0b64693914e2426 100644 --- a/lib/datasource/repology/index.ts +++ b/lib/datasource/repology/index.ts @@ -1,6 +1,6 @@ import { URLSearchParams } from 'url'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { GetReleasesConfig, ReleaseResult } from '../common'; diff --git a/lib/datasource/ruby-version/index.ts b/lib/datasource/ruby-version/index.ts index d85ee6cec9d5915ea804cea0df3dcb17387b87eb..433ede5c0612cd34202543e741376fb5e4f1ea51 100644 --- a/lib/datasource/ruby-version/index.ts +++ b/lib/datasource/ruby-version/index.ts @@ -1,6 +1,6 @@ import { parse } from 'node-html-parser'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { isVersion } from '../../versioning/ruby'; diff --git a/lib/datasource/rubygems/get-rubygems-org.ts b/lib/datasource/rubygems/get-rubygems-org.ts index f3005573227fa5ca68967d4a669f33377bfbc0e8..05dbf41e5abb1cd51005c8404a7506562bba943b 100644 --- a/lib/datasource/rubygems/get-rubygems-org.ts +++ b/lib/datasource/rubygems/get-rubygems-org.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http } from '../../util/http'; import { ReleaseResult } from '../common'; import { id } from './common'; diff --git a/lib/datasource/terraform-module/index.ts b/lib/datasource/terraform-module/index.ts index 4cac9a7d805a35f464e8128528024a873b2049b0..5747efb111073067b607c980c8263005848e7e50 100644 --- a/lib/datasource/terraform-module/index.ts +++ b/lib/datasource/terraform-module/index.ts @@ -1,5 +1,5 @@ import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as globalCache from '../../util/cache/global'; import { Http } from '../../util/http'; import { GetReleasesConfig, ReleaseResult } from '../common'; diff --git a/lib/manager/gradle/index.ts b/lib/manager/gradle/index.ts index 2b1d02d87b1946a92db2fa3064597fac93616e41..2af2a8e97e54927eebfa317217bb2547641b1572 100644 --- a/lib/manager/gradle/index.ts +++ b/lib/manager/gradle/index.ts @@ -5,7 +5,7 @@ import upath from 'upath'; import { LANGUAGE_JAVA } from '../../constants/languages'; import * as datasourceMaven from '../../datasource/maven'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { ExecOptions, exec } from '../../util/exec'; import { BinarySource } from '../../util/exec/common'; import { readLocalFile } from '../../util/fs'; diff --git a/lib/manager/npm/post-update/index.ts b/lib/manager/npm/post-update/index.ts index 75cf85f9c3f6c768ad7803cd41efdbe605faf2c8..f380fb289096ca03760291a50f38ded3cb6e811f 100644 --- a/lib/manager/npm/post-update/index.ts +++ b/lib/manager/npm/post-update/index.ts @@ -6,7 +6,7 @@ import { SYSTEM_INSUFFICIENT_DISK_SPACE } from '../../../constants/error-message import { id as npmId } from '../../../datasource/npm'; import { logger } from '../../../logger'; import { platform } from '../../../platform'; -import { ExternalHostError } from '../../../types/error'; +import { ExternalHostError } from '../../../types/errors/external-host-error'; import { getChildProcessEnv } from '../../../util/exec/env'; import { deleteLocalFile } from '../../../util/fs'; import * as hostRules from '../../../util/host-rules'; diff --git a/lib/manager/npm/post-update/yarn.ts b/lib/manager/npm/post-update/yarn.ts index 1dcc798c0b18847d1ec3c4c0c2a6a0f40dc98e69..f845e894b30063dbc6b60bdb27c3cd930489f635 100644 --- a/lib/manager/npm/post-update/yarn.ts +++ b/lib/manager/npm/post-update/yarn.ts @@ -6,7 +6,7 @@ import { join } from 'upath'; import { SYSTEM_INSUFFICIENT_DISK_SPACE } from '../../../constants/error-messages'; import { id as npmId } from '../../../datasource/npm'; import { logger } from '../../../logger'; -import { ExternalHostError } from '../../../types/error'; +import { ExternalHostError } from '../../../types/errors/external-host-error'; import { ExecOptions, exec } from '../../../util/exec'; import { PostUpdateConfig, Upgrade } from '../../common'; import { getNodeConstraint } from './node-version'; diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts index b857ed7f36e753f692b69fb34a3bce6b20a3bd5f..aa9e3ec0c1ff98c39f29bba3360012cb9a06ef62 100644 --- a/lib/platform/git/storage.ts +++ b/lib/platform/git/storage.ts @@ -10,7 +10,7 @@ import { SYSTEM_INSUFFICIENT_DISK_SPACE, } from '../../constants/error-messages'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as limits from '../../workers/global/limits'; import { CommitFilesConfig } from '../common'; import { writePrivateKey } from './private-key'; diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index 644643b558675ee1c8cc505ea34578b0515ad60d..d23dc10cbb3ad0cc45fdca9f38e7a9d2eca6d20a 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -23,7 +23,7 @@ import { } from '../../constants/pull-requests'; import { logger } from '../../logger'; import { BranchStatus } from '../../types'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as hostRules from '../../util/host-rules'; import * as githubHttp from '../../util/http/github'; import { sanitize } from '../../util/sanitize'; diff --git a/lib/types/error.ts b/lib/types/errors/external-host-error.ts similarity index 87% rename from lib/types/error.ts rename to lib/types/errors/external-host-error.ts index b6e67592d0b28a10f11d88f16b13371f45a059ce..88f4fdb936f19f8d9c09bbc42ac654ea7176e752 100644 --- a/lib/types/error.ts +++ b/lib/types/errors/external-host-error.ts @@ -1,4 +1,4 @@ -import { EXTERNAL_HOST_ERROR } from '../constants/error-messages'; +import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages'; export class ExternalHostError extends Error { hostType: string; diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts index c2f6dd1b657c28bb8728bacf63c8fa3b1525c097..d1c1fcbf3ad52afc61a9ba288216bc3f70a8f536 100644 --- a/lib/util/http/github.ts +++ b/lib/util/http/github.ts @@ -10,7 +10,7 @@ import { } from '../../constants/error-messages'; import { PLATFORM_TYPE_GITHUB } from '../../constants/platforms'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { maskToken } from '../mask'; import { Http, HttpPostOptions, HttpResponse, InternalHttpOptions } from '.'; diff --git a/lib/util/http/gitlab.ts b/lib/util/http/gitlab.ts index 5e759d333952b2960b8e7053aabdf275775886d1..34b8496285a9442c8d987aa2ddc2883ab3acdd7d 100644 --- a/lib/util/http/gitlab.ts +++ b/lib/util/http/gitlab.ts @@ -2,7 +2,7 @@ import { URL } from 'url'; import parseLinkHeader from 'parse-link-header'; import { PLATFORM_TYPE_GITLAB } from '../../constants/platforms'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { Http, HttpResponse, InternalHttpOptions } from '.'; let baseUrl = 'https://gitlab.com/api/v4/'; diff --git a/lib/util/http/index.ts b/lib/util/http/index.ts index bb42c5b888d67725ad17a9c80fa22a697878f977..43da6e0cb8b3718d4f658ff3f9b5b51b21824744 100644 --- a/lib/util/http/index.ts +++ b/lib/util/http/index.ts @@ -1,7 +1,7 @@ import crypto from 'crypto'; import URL from 'url'; import got from 'got'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import * as runCache from '../cache/run'; import { clone } from '../clone'; import { applyAuthorization } from './auth'; diff --git a/lib/workers/branch/index.ts b/lib/workers/branch/index.ts index a646d6dc708264257594733be2cbe59cd96783b3..416a2380a36778084589e7986388b55d326a6963 100644 --- a/lib/workers/branch/index.ts +++ b/lib/workers/branch/index.ts @@ -22,7 +22,7 @@ import { logger } from '../../logger'; import { getAdditionalFiles } from '../../manager/npm/post-update'; import { platform } from '../../platform'; import { BranchStatus } from '../../types'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { emojify } from '../../util/emoji'; import { exec } from '../../util/exec'; import { readLocalFile, writeLocalFile } from '../../util/fs'; diff --git a/lib/workers/pr/index.ts b/lib/workers/pr/index.ts index 17c2bcdca22108d2d1cc8e91c3d269db56c96b3a..d960b93f175b183f9d6d49c65dadd6b3c7282d2f 100644 --- a/lib/workers/pr/index.ts +++ b/lib/workers/pr/index.ts @@ -9,7 +9,7 @@ import { import { logger } from '../../logger'; import { PlatformPrOptions, Pr, platform } from '../../platform'; import { BranchStatus } from '../../types'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { BranchConfig, PrResult } from '../common'; import { getPrBody } from './body'; import { ChangeLogError } from './changelog'; diff --git a/lib/workers/repository/error.spec.ts b/lib/workers/repository/error.spec.ts index 5fce970db9260a6f3ba513ffd160483124a545aa..29be585ad698ae5da57cf1d1cf58fcad3524596c 100644 --- a/lib/workers/repository/error.spec.ts +++ b/lib/workers/repository/error.spec.ts @@ -26,7 +26,7 @@ import { SYSTEM_INSUFFICIENT_MEMORY, UNKNOWN_ERROR, } from '../../constants/error-messages'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import handleError from './error'; jest.mock('./error-config'); diff --git a/lib/workers/repository/error.ts b/lib/workers/repository/error.ts index 5ff14d0aeac259bfc6737f8bf10e0f95f0f2c5b2..3014762e6f91407dba6dce51c88d9193d33ec6b2 100644 --- a/lib/workers/repository/error.ts +++ b/lib/workers/repository/error.ts @@ -28,7 +28,7 @@ import { UNKNOWN_ERROR, } from '../../constants/error-messages'; import { logger } from '../../logger'; -import { ExternalHostError } from '../../types/error'; +import { ExternalHostError } from '../../types/errors/external-host-error'; import { raiseConfigWarningIssue } from './error-config'; export default async function handleError( diff --git a/lib/workers/repository/init/config.ts b/lib/workers/repository/init/config.ts index 21ce3d73254720483c290f5f43a824c926b97c49..2eeb01658605d054bcd450df4e8f8b85277d56ea 100644 --- a/lib/workers/repository/init/config.ts +++ b/lib/workers/repository/init/config.ts @@ -11,7 +11,7 @@ import { CONFIG_VALIDATION } from '../../../constants/error-messages'; import * as npmApi from '../../../datasource/npm'; import { logger } from '../../../logger'; import { platform } from '../../../platform'; -import { ExternalHostError } from '../../../types/error'; +import { ExternalHostError } from '../../../types/errors/external-host-error'; import { readLocalFile } from '../../../util/fs'; import * as hostRules from '../../../util/host-rules'; import { flattenPackageRules } from './flatten';