mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(changelog): Check that err.message exists
This commit is contained in:
parent
30155782f5
commit
cadc148cd0
1 changed files with 3 additions and 2 deletions
|
@ -17,8 +17,9 @@ async function getChangeLogJSON(depName, fromVersion, newVersion, logger) {
|
||||||
return await changelog.generate(depName, semverString);
|
return await changelog.generate(depName, semverString);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (
|
if (
|
||||||
err.message.indexOf('did not specify the repository url') !== -1 ||
|
err.message &&
|
||||||
err.message.indexOf('Unknown Github Repo') !== -1
|
(err.message.indexOf('did not specify the repository url') !== -1 ||
|
||||||
|
err.message.indexOf('Unknown Github Repo') !== -1)
|
||||||
) {
|
) {
|
||||||
logger.debug({ err }, `getChangeLogJSON error`);
|
logger.debug({ err }, `getChangeLogJSON error`);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue