Merge branch 'fix_compile_warnings'
This commit is contained in:
@@ -58,7 +58,7 @@ function boot_load(name) {
|
||||
var mcode_blob = null
|
||||
var mach_blob = null
|
||||
if (!fd.is_file(mcode_path)) {
|
||||
print("error: missing boot seed: " + name + "\n")
|
||||
os.print("error: missing boot seed: " + name + "\n")
|
||||
disrupt
|
||||
}
|
||||
mcode_blob = fd.slurp(mcode_path)
|
||||
@@ -103,7 +103,7 @@ function load_pipeline_module(name, env) {
|
||||
tok_result = boot_tok(src, source_path)
|
||||
ast = boot_par(tok_result.tokens, src, source_path, boot_tok)
|
||||
if (ast.errors != null && length(ast.errors) > 0) {
|
||||
print("error: failed to compile pipeline module: " + name + "\n")
|
||||
os.print("error: failed to compile pipeline module: " + name + "\n")
|
||||
disrupt
|
||||
}
|
||||
ast = boot_fld(ast)
|
||||
@@ -126,7 +126,7 @@ function load_pipeline_module(name, env) {
|
||||
mach_blob = mach_compile_mcode_bin(name, text(mcode_blob))
|
||||
return mach_load(mach_blob, env)
|
||||
}
|
||||
print("error: cannot load pipeline module: " + name + "\n")
|
||||
os.print("error: cannot load pipeline module: " + name + "\n")
|
||||
disrupt
|
||||
}
|
||||
|
||||
@@ -166,9 +166,9 @@ function analyze(src, filename) {
|
||||
col = e.column
|
||||
if (msg != prev_msg || line != prev_line) {
|
||||
if (line != null && col != null)
|
||||
print(`${filename}:${text(line)}:${text(col)}: error: ${msg}`)
|
||||
os.print(`${filename}:${text(line)}:${text(col)}: error: ${msg}\n`)
|
||||
else
|
||||
print(`${filename}: error: ${msg}`)
|
||||
os.print(`${filename}: error: ${msg}\n`)
|
||||
}
|
||||
prev_line = line
|
||||
prev_msg = msg
|
||||
@@ -473,7 +473,7 @@ function use_core(path) {
|
||||
result = mach_load(mach_blob, env)
|
||||
}
|
||||
} disruption {
|
||||
print("use('" + path + "'): failed to compile or load " + file_path + "\n")
|
||||
os.print("use('" + path + "'): failed to compile or load " + file_path + "\n")
|
||||
disrupt
|
||||
}
|
||||
_load_mod()
|
||||
@@ -701,7 +701,7 @@ function load_log_config() {
|
||||
terminal: {
|
||||
type: "console",
|
||||
format: "pretty",
|
||||
channels: ["console", "error", "system"],
|
||||
channels: ["*"],
|
||||
stack: ["error"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user