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.