Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5963

maxctrl create report --archive error reporting produces errors

    XMLWordPrintable

Details

    Description

      The error reporting in maxctrl create report --archive is not working and the reason for the errors is lost. Here is an example:

      [vagrant@maxscale ~]$ maxctrl  create report --archive /tmp/maxctrl-report.tar
      OK
      [vagrant@maxscale ~]$ maxctrl  create report --archive /tmp/maxctrl-report.tar
      ReferenceError: error is not defined
          at /usr/share/maxscale/maxctrl/maxctrl.js:2:41738
          at /usr/share/maxscale/maxctrl/maxctrl.js:2:42401
          at maxctrl (/usr/share/maxscale/maxctrl/maxctrl.js:2:18422)
      

      The reason for the error was that the archive already existed but a lacking import of the error function causes it to not be reported.

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.