Skip to content

Commit 1205fbd

Browse files
committed
Add error type to the GH error message.
1 parent bb7785f commit 1205fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lombiq.NodeJs.Extensions/scripts/handle-error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function handleErrorObjectForGitHub(type, code, message, path, line, column) {
3636
// the file is in a Git submodule, but sometimes also if the workflow step terminated with a non-zero exit code.
3737
// In this case, the logs won't contain the additional formatting information, just the message itself, so the
3838
// path has to be appended to the message.
39-
updatedMessage = `${updatedMessage.trim()} at ${file}:${line}:${column}`;
39+
updatedMessage = `[${code}] ${updatedMessage.trim()} at ${file}:${line}:${column}`;
4040
}
4141

4242
process.stderr.write(`${os.EOL}::${type} ${parameters.join(',')}::${updatedMessage}${os.EOL}`);

0 commit comments

Comments
 (0)