Merge pull request #2545 from balena-io/config-generate-incompatible-dt-error

config generate: Fix the incompatible arch errors showing as not found
This commit is contained in:
bulldozer-balena[bot] 2022-10-17 21:20:21 +00:00 committed by GitHub
commit 1fb46bfa5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,8 @@ export default class ConfigGenerateCmd extends Command {
deviceType,
))
) {
throw new balena.errors.BalenaInvalidDeviceType(
const { ExpectedError } = await import('../../errors');
throw new ExpectedError(
`Device type ${options.deviceType} is incompatible with fleet ${options.fleet}`,
);
}