Skip to content

Commit c3e28c4

Browse files
authored
Merge pull request #27 from rust-lang/improve-logs
improve logs
2 parents 63a7064 + c8490af commit c3e28c4

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

dist/chunk1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19921,7 +19921,7 @@ function getUserAgent() {
1992119921
function runAction(fn) {
1992219922
fn().catch((error) => {
1992319923
const errorMessage = error instanceof Error ? error.message : String(error);
19924-
core.setFailed(`Error: ${errorMessage}`);
19924+
core.setFailed(errorMessage);
1992519925
});
1992619926
}
1992719927

dist/post.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ async function cleanup() {
2222
await revokeToken(registryUrl, token);
2323
}
2424
async function revokeToken(registryUrl, token) {
25-
core.info("Revoking trusted publishing token");
2625
const tokensEndpoint = _chunk1js.getTokensEndpoint.call(void 0, registryUrl);
27-
core.info(`Revoking token at: ${tokensEndpoint}`);
26+
core.info(`Revoking trusted publishing token at ${tokensEndpoint}`);
2827
const response = await fetch(tokensEndpoint, {
2928
method: "DELETE",
3029
headers: {

src/post.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ export async function cleanup(): Promise<void> {
2727
}
2828

2929
async function revokeToken(registryUrl: string, token: string): Promise<void> {
30-
core.info("Revoking trusted publishing token");
31-
3230
const tokensEndpoint = getTokensEndpoint(registryUrl);
33-
34-
core.info(`Revoking token at: ${tokensEndpoint}`);
31+
core.info(`Revoking trusted publishing token at ${tokensEndpoint}`);
3532

3633
const response = await fetch(tokensEndpoint, {
3734
method: "DELETE",

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ export function runAction(fn: () => Promise<void>): void {
9595
fn().catch((error: unknown) => {
9696
const errorMessage =
9797
error instanceof Error ? error.message : String(error);
98-
core.setFailed(`Error: ${errorMessage}`);
98+
core.setFailed(errorMessage);
9999
});
100100
}

0 commit comments

Comments
 (0)