Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rs-tiled
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
rs-tiled
Commits
38ac760b
Unverified
Commit
38ac760b
authored
3 years ago
by
Michael Swiger
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make malformed tileset attributes error more accurate (#194)
parent
dfd57a5c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/tileset.rs
+1
-1
1 addition, 1 deletion
src/tileset.rs
with
5 additions
and
1 deletion
CHANGELOG.md
+
4
−
0
View file @
38ac760b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/tileset.rs
+
1
−
1
View file @
38ac760b
...
...
@@ -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
tile
height with correct types"
.to_string
())
);
let
root_path
=
map_path
.parent
()
.ok_or
(
Error
::
PathIsNotFile
)
?
.to_owned
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment