| Crates.io | context_error |
| lib.rs | context_error |
| version | 0.2.0 |
| created_at | 2025-09-25 15:09:38.972971+00 |
| updated_at | 2025-11-12 14:52:40.464022+00 |
| description | Library to create rich errors to help users understand what the error was and how to fix it |
| homepage | |
| repository | https://github.com/douweschulte/context_error |
| max_upload_size | |
| id | 1854740 |
| size | 110,964 |
My take on creating nice error messages intended for both libraries and end user code. With a high amount of possible ways of adding more context for end users. This project started in pdbtx and then moved with all my new Rust projects but now finally has ended up in its very own crate.
ββ[file.txt:42]
42 β Hello world
β βΆββ΄βΆβ΄ββ
β΅
β·
β Hello world
β βΆβ΄
β Make it a good one!
β βΆβ΄Cool βΆββ΄1
β΅
error: Invalid path
β·
β fileee.txt
β΅
This file does not exist
Did you mean any of: file.txt, filet.txt?
error: Invalid number
β·
3 β null,80o0,YES,,67.77
β βΆβββ΄
13 β null,7oo1,NO,-1,23.11
β βΆβββ΄
35 β HOMOSAPIENS,12i1,YES,,1.23
β βΆβββ΄
β΅
This column is not a number
Version: Software AB v2025.42
And most importantly it allows you to only define those properties that are known and make sense and slims down the output to always be neat.
EUPL