diff --git a/CHANGELOG.md b/CHANGELOG.md index 51a1f47a89158f305c6c6b463e1b44120d9673ac..09bb8158a38340e7e88bda01c3a946aa62add2ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), 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] 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 diff --git a/src/tileset.rs b/src/tileset.rs index 4dd26b2886c1a9ea4a57f79f900c4d68f398a750..34d2d533b4d15df1a81c8cc7498c9ff71c8f71f7 100644 --- a/src/tileset.rs +++ b/src/tileset.rs @@ -171,7 +171,7 @@ impl Tileset { ("tilewidth", width, |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();