| Crates.io | swamp-error-report |
| lib.rs | swamp-error-report |
| version | 0.2.26 |
| created_at | 2025-03-29 16:57:55.859088+00 |
| updated_at | 2025-08-18 11:25:30.381856+00 |
| description | Swamp error report |
| homepage | |
| repository | https://github.com/swamp/swamp |
| max_upload_size | |
| id | 1611460 |
| size | 54,325 |
Provides user-friendly formatting and display for errors generated during the compilation of Swamp programming language code.
This crate takes structured error information, primarily from the swamp-analyzer crate, and transforms it into human-readable diagnostic messages. It leverages swamp-source-map to pinpoint the error location within the original source code and uses the eira library to build and format the final report, often including the relevant source line and highlighting.
swamp_analyzer::Error (and potentially other error types) into structured reports.swamp_source_map::SourceMap to fetch and display the source code line where the error occurred.This crate is typically used by the main Swamp compiler executable or related tooling.
[dependencies]
swamp-error-report = "0.2.26"
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp