Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Dec 1, 2023
1 parent 0396817 commit 3a218e9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ private Result validate(String schema, String spec) throws IOException {
}
Path schemaPath = tmpDir.resolve("schema.lua");
Path specPath = tmpDir.resolve("spec.yml");
System.err
.println("tmpdir: " + tmpDir + " schema: " + schemaPath + " spec: " + specPath);
// also exercise the cli writer and return what it would have printed to stdout
var cliOutput = validateCli(Files.writeString(schemaPath,
schema + "\nplanetiler.examples= '" + Files.writeString(specPath, spec) + "'"));
String script = schema + "\nplanetiler.examples= '" + Files.writeString(specPath, spec) + "'";
System.err
.println("tmpdir: " + tmpDir + " schema: " + schemaPath + " spec: " + specPath + " script:\n" + script);
var cliOutput = validateCli(Files.writeString(schemaPath, script));

return new Result(result, cliOutput);
}
Expand Down

0 comments on commit 3a218e9

Please sign in to comment.