Uploaded image for project: 'Maven Doxia Sitetools'
  1. Maven Doxia Sitetools
  2. DOXIASITETOOLS-227

Throwing "new ParseException(message)" shows message with "line [-1]"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.1
    • 1.10
    • Site renderer

    Description

      When throwing a 'org.apache.maven.doxia.parser.ParseException' from a Doxia module indicating only a message or source exception a message pointing to line -1 is show in console.

      Exemple:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-cli) on project asciidoc-maven-site-example: Error parsing '/home/asalgadr/github/asciidoctor-maven-examples/asciidoc-maven-site-example/src/site/asciidoc/article.adoc': line [-1] Found 1 issue(s) of severity DEBUG or higher during rendering -> [Help 1]

       

      I would expect that in case the line is not initialized, no reference to it is shown in the console.

       

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              Abel S.Romero Abel Salgado Romero
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: