content-aggregator transformGitCloneError does not preserve original stack
The transformGitCloneError code assumes the incoming error has a message field. On antora/users gitter:
Hi there. I have problems getting private repository authentication to work (Antora version 2.1) with a git repo on a BitBucket server. No matter whether I pass the credentials as environment variable, put them in ~/.git-credentials, or directly in the playbook, I get this error: Error: Cannot read property 'split' of undefined: https://.com/stash/scm// at transformGitCloneError (/home//.nvm/versions/node/v11.6.0/lib/node_modules/@antora/site-generator-default/node_modules/@antora/content-aggregator/lib/aggregate-content.js:727:10) at git.clone.then.catch (/home//.nvm/versions/node/v11.6.0/lib/node_modules/@antora/site-generator-default/node_modules/@antora/content-aggregator/lib/aggregate-content.js:184:17) Any ideas what I may be doing wrong?
The line numbers don't match up, but I'd guess this comes from one of the lines
msg = message.replace(/[.:]?\s*$/, '')
In both places in this method where message is assumed, if it's missing the existing info should be output somehow.