@harmoniclabs/pebble 0.1.0-dev1 → 0.1.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,10 +22,13 @@ export class Compiler extends DiagnosticEmitter {
|
|
|
22
22
|
const program = await astCompiler.compile();
|
|
23
23
|
if (this.diagnostics.length > 0) {
|
|
24
24
|
let msg;
|
|
25
|
+
globalThis.console && console.log(this.diagnostics);
|
|
26
|
+
const fstErrorMsg = this.diagnostics[0].toString();
|
|
27
|
+
const nDiags = this.diagnostics.length;
|
|
25
28
|
while (msg = this.diagnostics.shift()) {
|
|
26
29
|
this.io.stdout.write(msg.toString() + "\n");
|
|
27
30
|
}
|
|
28
|
-
throw new Error("compilation failed");
|
|
31
|
+
throw new Error("compilation failed with " + nDiags + " diagnostic messages; first message: " + fstErrorMsg);
|
|
29
32
|
}
|
|
30
33
|
const ir = compileTypedProgram(cfg, program);
|
|
31
34
|
const uplc = compileIRToUPLC(ir);
|
package/package.json
CHANGED