diff --git a/client/src/driver/BitBakeProjectScanner.ts b/client/src/driver/BitBakeProjectScanner.ts index 75a0c8b5..95eb5ec2 100644 --- a/client/src/driver/BitBakeProjectScanner.ts +++ b/client/src/driver/BitBakeProjectScanner.ts @@ -238,8 +238,8 @@ export class BitBakeProjectScanner { if (this.containerMountPoint === undefined && !hostToContainer) { // Should only be called through scanAvailableLayers() const hostWorkdir = this.bitbakeDriver?.getBuildConfig('workingDirectory') - if (hostWorkdir === undefined) { - throw new Error('hostWorkdir is undefined') + if (typeof hostWorkdir !== 'string') { + throw new Error('hostWorkdir is not a string') } await this.scanContainerMountPoint(inputPath, hostWorkdir) }