Adjust error output

Signed-off-by: Tejas Kumar <tejask@spotify.com>
This commit is contained in:
Tejas Kumar
2021-05-18 13:31:00 +02:00
parent 9962faa2b0
commit 46bb4a1482
@@ -110,9 +110,7 @@ export class GithubPublisher implements PublisherBase {
repoName: name,
});
} catch (e) {
throw new Error(
`Failed to add branch protection to '${name}': ${e.message}`,
);
throw new Error(`Failed to add branch protection to '${name}', ${e}`);
}
return { remoteUrl, catalogInfoUrl };