Skip to content
Snippets Groups Projects
Unverified Commit 38ac760b authored by Michael Swiger's avatar Michael Swiger Committed by GitHub
Browse files

Make malformed tileset attributes error more accurate (#194)

parent dfd57a5c
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. ...@@ -5,6 +5,10 @@ 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
- Fix message when a tileset is missing the `tilecount` attribute (#194).
## [0.10.0] ## [0.10.0]
As this release changes practically the entire interface of the crate, it is recommended that you As this release changes practically the entire interface of the crate, it is recommended that you
check out the [examples](https://github.com/mapeditor/rs-tiled/tree/master/examples) instead of the check out the [examples](https://github.com/mapeditor/rs-tiled/tree/master/examples) instead of the
......
...@@ -171,7 +171,7 @@ impl Tileset { ...@@ -171,7 +171,7 @@ impl Tileset {
("tilewidth", width, |v:String| v.parse().ok()), ("tilewidth", width, |v:String| v.parse().ok()),
("tileheight", height, |v:String| v.parse().ok()), ("tileheight", height, |v:String| v.parse().ok()),
], ],
Error::MalformedAttributes("tileset must have a firstgid, name tile width and height with correct types".to_string()) Error::MalformedAttributes("tileset must have a firstgid, tilecount, tilewidth, and tileheight with correct types".to_string())
); );
let root_path = map_path.parent().ok_or(Error::PathIsNotFile)?.to_owned(); let root_path = map_path.parent().ok_or(Error::PathIsNotFile)?.to_owned();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment