We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8276d95 commit b91a4a5Copy full SHA for b91a4a5
src/utils/machine-id.ts
@@ -90,6 +90,11 @@ export function machineIdSync(original: boolean): string {
90
if (!platform) {
91
return 'fakeid' + nanoid();
92
}
93
- let id: string = expose(execSync(guid[platform]).toString());
94
- return original ? id : hash(id);
+ try {
+ let id: string = expose(execSync(guid[platform]).toString());
95
+ return original ? id : hash(id);
96
+ } catch (error) {
97
+ console.error('get machine id failed: ', error);
98
+ return 'fakeid' + nanoid();
99
+ }
100
0 commit comments