Skip to content

Commit efbb4b8

Browse files
revert error code check in case there are negative codes
1 parent f26db68 commit efbb4b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/unity-editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class UnityEditor {
274274

275275
if (exitCode === undefined) {
276276
throw Error('Failed to start Unity!');
277-
} else if (exitCode > 0) {
277+
} else if (exitCode !== 0) {
278278
throw Error(`Unity failed with exit code ${exitCode}`);
279279
}
280280
}

0 commit comments

Comments
 (0)