Fix roblox document error messages missing details

This commit is contained in:
Filip Tibell 2023-03-26 11:32:40 +02:00
parent ffe0ce1f52
commit f1b780af7d
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Fixed error messages for reading & writing roblox files not containing the full error message
## `0.6.3` - March 26th, 2023 ## `0.6.3` - March 26th, 2023
### Added ### Added

View file

@ -7,9 +7,9 @@ pub enum DocumentError {
UnknownKind, UnknownKind,
#[error("Unknown document format")] #[error("Unknown document format")]
UnknownFormat, UnknownFormat,
#[error("Failed to read document from buffer")] #[error("Failed to read document from buffer - {0}")]
ReadError(String), ReadError(String),
#[error("Failed to write document to buffer")] #[error("Failed to write document to buffer - {0}")]
WriteError(String), WriteError(String),
#[error("Failed to convert into a DataModel - the given document is not a place")] #[error("Failed to convert into a DataModel - the given document is not a place")]
IntoDataModelInvalidArgs, IntoDataModelInvalidArgs,