Skip to content

Commit b8f39f6

Browse files
committed
more error handling
1 parent 099ec33 commit b8f39f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/testing/src/config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ export class Config {
7676
this.withDir(affected.path, args => {
7777
if ('TestAll' in affected) {
7878
this._testAll(args);
79-
}
80-
if ('TestSome' in affected) {
79+
} else if ('TestSome' in affected) {
8180
this._testSome(args, affected.TestSome);
81+
} else {
82+
throw `affected must contain either a "TestAll" or "TestSome" field, got ${affected}`;
8283
}
8384
});
8485

0 commit comments

Comments
 (0)