mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-22 22:35:19 +00:00
Print errors in tools and examples to stderr
This commit is contained in:
@@ -57,9 +57,9 @@ example :: proc() {
|
||||
fmt.printf("[Average]: %v bytes in %.2f ms (%.2f MiB/s).\n", len(input), average_ms, average_speed)
|
||||
|
||||
if errs[0] != .None {
|
||||
fmt.printf("Load/Parse error: %v\n", errs[0])
|
||||
fmt.eprintf("Load/Parse error: %v\n", errs[0])
|
||||
if errs[0] == .File_Error {
|
||||
fmt.println("\"unicode.xml\" not found. Did you run \"tests\\download_assets.py\"?")
|
||||
fmt.eprintln("\"unicode.xml\" not found. Did you run \"tests\\download_assets.py\"?")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user