fix: remove debugging console.error
This commit is contained in:
parent
cfc10039f3
commit
3d5db1f8b0
2
index.js
2
index.js
@ -62,14 +62,12 @@ async function run(context, plugins) {
|
|||||||
try {
|
try {
|
||||||
await verifyAuth(options.repositoryUrl, options.branch, {cwd, env});
|
await verifyAuth(options.repositoryUrl, options.branch, {cwd, env});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('call isBranchUpToDate');
|
|
||||||
if (!(await isBranchUpToDate(options.branch, {cwd, env}))) {
|
if (!(await isBranchUpToDate(options.branch, {cwd, env}))) {
|
||||||
logger.log(
|
logger.log(
|
||||||
`The local branch ${options.branch} is behind the remote one, therefore a new version won't be published.`
|
`The local branch ${options.branch} is behind the remote one, therefore a new version won't be published.`
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
console.error('call throw error');
|
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user