Print errors in tools and examples to stderr

This commit is contained in:
Krzesimir Nowak
2026-02-17 23:08:32 +01:00
parent 47775214d6
commit a90f2ad3a0
4 changed files with 7 additions and 7 deletions

View File

@@ -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
}