From f1b780af7d0212f80b09c23c5eb8b7a412ccfc74 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sun, 26 Mar 2023 11:32:40 +0200 Subject: [PATCH] Fix roblox document error messages missing details --- CHANGELOG.md | 6 ++++++ packages/lib-roblox/src/document/error.rs | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09b57ee..66b2fdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), 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 ### Added diff --git a/packages/lib-roblox/src/document/error.rs b/packages/lib-roblox/src/document/error.rs index 67178cd..265bf45 100644 --- a/packages/lib-roblox/src/document/error.rs +++ b/packages/lib-roblox/src/document/error.rs @@ -7,9 +7,9 @@ pub enum DocumentError { UnknownKind, #[error("Unknown document format")] UnknownFormat, - #[error("Failed to read document from buffer")] + #[error("Failed to read document from buffer - {0}")] ReadError(String), - #[error("Failed to write document to buffer")] + #[error("Failed to write document to buffer - {0}")] WriteError(String), #[error("Failed to convert into a DataModel - the given document is not a place")] IntoDataModelInvalidArgs,