From 2e115968d5dce98fe05ab0607e1c04bd9f4c67c8 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Mon, 17 Oct 2022 19:13:14 +0300 Subject: [PATCH] config generate: Fix the incompatible arch errors showing as not found Change-type: patch Signed-off-by: Thodoris Greasidis --- lib/commands/config/generate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/config/generate.ts b/lib/commands/config/generate.ts index a5cfb6bf..2806a26e 100644 --- a/lib/commands/config/generate.ts +++ b/lib/commands/config/generate.ts @@ -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}`, ); }