Skip to content

Commit 1cea366

Browse files
committed
PDPDEVTOOL-4753 do not throw exception if license does not exist
1 parent 6b1920e commit 1cea366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node-cli/src/core/sdksetup/SdkLicense.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SdkLicense {
2828
return;
2929
}
3030
const tmpFilePath = os.tmpdir() + path.sep + LICENSE_FILENAME;
31-
const fileExists = fs.lstatSync(tmpFilePath);
31+
const fileExists = fs.lstatSync(tmpFilePath, {throwIfNoEntry: false});
3232
if (!fileExists) {
3333
fs.copyFileSync(LICENSE_PATH, tmpFilePath);
3434
}

0 commit comments

Comments
 (0)