Fix logging for removing nonexistent label

https://github.com/jsoref/stale-bot-debug/actions/runs/5828506506/job/15806335430#step:2:97

::group::[#2] Issue #2
[#2] Issue #2
...
  [#2] Removing all the labels specified via the labels-to-remove-when-stale (​https://github.com/actions/stale#labels-to-remove-when-stale​) option.
  [#2] Removing the label "label-to-add-when-unstale" from this issue...
  Error: [#2] Error when removing the label: "Label does not exist"

The quotes on this last line make it look like the action was trying to
remove a label named `Label does not exist`.

This change removes the quotes to make it clear that the text is just an
error message (which is implied by the `:`) as opposed to the name of a
label, which is the reading one gets from the inclusion of additional
quotes around the text.
This commit is contained in:
Josh Soref 2023-08-11 09:16:14 -04:00
parent c9d32d2c23
commit deab8514c2
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -998,7 +998,7 @@ class IssuesProcessor {
issueLogger.info(`${isSubStep ? logger_service_1.LoggerService.white('└── ') : ''}The label "${logger_service_1.LoggerService.cyan(label)}" was removed`);
}
catch (error) {
issueLogger.error(`${isSubStep ? logger_service_1.LoggerService.white('└── ') : ''}Error when removing the label: "${logger_service_1.LoggerService.cyan(error.message)}"`);
issueLogger.error(`${isSubStep ? logger_service_1.LoggerService.white('└── ') : ''}Error when removing the label: ${logger_service_1.LoggerService.cyan(error.message)}`);
}
});
}

View File

@ -1039,7 +1039,7 @@ export class IssuesProcessor {
issueLogger.error(
`${
isSubStep ? LoggerService.white('└── ') : ''
}Error when removing the label: "${LoggerService.cyan(error.message)}"`
}Error when removing the label: ${LoggerService.cyan(error.message)}`
);
}
}