Skip to content

Commit

Permalink
Merge pull request #3 from romantech/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
romantech committed Apr 6, 2024
2 parents 364e61c + b668228 commit 86ca4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ignorePrivate = format((info) => (info.private ? false : info));
const formatStackTrace = (stack: string, limit = 3) => {
const [errorMessage, ...restLines] = stack.split('\n');
return [
errorMessage.replace(': ', '-'),
errorMessage.replace(/(\w+):/g, '[$1]'), // "Error: This is ..." -> "[Error] This is ..."
...restLines.slice(0, limit).map((line) => `-> ${line}`),
].join('\n');
};
Expand Down

0 comments on commit 86ca4b2

Please sign in to comment.