config generate: Fix the incompatible arch errors showing as not found

Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
This commit is contained in:
Thodoris Greasidis 2022-10-17 19:13:14 +03:00
parent 83020797b0
commit 2e115968d5

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}`,
);
}