Skip to content

Commit 94889d1

Browse files
Throw when unsupported operating system is detected
1 parent 58cabb7 commit 94889d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ export class PlatformInformation {
124124
architecturePromise = PlatformInformation.GetUnixArchitecture();
125125
distributionPromise = LinuxDistribution.GetCurrent();
126126
break;
127+
128+
default:
129+
throw new Error(`Unsupported operating system: ${os.platform()}`);
127130
}
128131

129132
return Promise.all([architecturePromise, distributionPromise])

0 commit comments

Comments
 (0)