Skip to content

Commit 888f7d6

Browse files
KlumbumbusKlumbumbus
authored andcommitted
see #21836 - Improve error messages (use only key instead of whole tag)
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18536 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent b4af8b7 commit 888f7d6

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

resources/data/validator/geometry.mapcss

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,12 @@ node[restriction] {
9494
throwError: tr("{0} on a node. Should be used in a relation", "{0.tag}");
9595
}
9696

97-
/* {0} on a way, should be a node */
98-
way[voltage:primary],
99-
way[voltage:secondary],
100-
way[voltage:tertiary],
101-
way[line_attachment],
102-
way[line_management],
97+
/* {0} on a way, should be a node (0.tag) */
10398
way[emergency=fire_hydrant],
10499
way[emergency=defibrillator],
105-
way[entrance],
106-
way[door],
107100
way[railway=subway_entrance],
108101
way[man_made=survey_point],
109102
way[power=transformer],
110-
way[transformer],
111103
way[power=pole],
112104
way[power=catenary_mast],
113105
way[power=connection],
@@ -130,6 +122,18 @@ way[highway=motorway_junction] {
130122
throwWarning: tr("{0} on a way. Should be used on a node.", "{0.tag}");
131123
}
132124

125+
/* {0} on a way, should be a node (0.key) */
126+
way[voltage:primary],
127+
way[voltage:secondary],
128+
way[voltage:tertiary],
129+
way[transformer],
130+
way[line_attachment],
131+
way[line_management],
132+
way[entrance],
133+
way[door] {
134+
throwWarning: tr("{0} on a way. Should be used on a node.", "{0.key}");
135+
}
136+
133137
/* {0} on a way, should be a relation; #15642, #10252, #14288 */
134138
way[restriction][restriction =~ /^(no_right_turn|no_left_turn|no_u_turn|no_straight_on|only_right_turn|only_left_turn|only_straight_on|no_entry|no_exit)$/],
135139
way[type=multipolygon],

0 commit comments

Comments
 (0)