aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/xml/example/xml_example.odin
diff options
context:
space:
mode:
authorKrzesimir Nowak <qdlacz@gmail.com>2026-02-17 23:08:32 +0100
committerKrzesimir Nowak <qdlacz@gmail.com>2026-02-17 23:08:32 +0100
commita90f2ad3a0233803f220a4d2b132a474f8044781 (patch)
treec869aa87c73f4b27c57520be728beccebf48428f /core/encoding/xml/example/xml_example.odin
parent47775214d6287537d6e148c37e0c49aa8228b81b (diff)
Print errors in tools and examples to stderr
Diffstat (limited to 'core/encoding/xml/example/xml_example.odin')
-rw-r--r--core/encoding/xml/example/xml_example.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/encoding/xml/example/xml_example.odin b/core/encoding/xml/example/xml_example.odin
index 267ae2ca9..5ea689069 100644
--- a/core/encoding/xml/example/xml_example.odin
+++ b/core/encoding/xml/example/xml_example.odin
@@ -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
}