Skip to content

Commit 4d01390

Browse files
committed
Improve assert message
1 parent ba232b2 commit 4d01390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/harness/externalCompileRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
4646
if (update.status !== 0) throw new Error(`git submodule update for ${directoryName} failed!`);
4747

4848
const config = JSON.parse(fs.readFileSync(path.join(cwd, "test.json"), { encoding: "utf8" })) as UserConfig;
49-
ts.Debug.assert(!!config.types, "Git is the only reason for using test.json right now");
49+
ts.Debug.assert(!!config.types, "Bad format from test.json: Types field must be present.");
5050
types = config.types;
5151

5252
cwd = path.join(cwd, directoryName);

0 commit comments

Comments
 (0)