Skip to content

Commit

Permalink
add new line at the end for better local readability
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro5id committed Dec 12, 2019
1 parent ddf7ff3 commit f118e8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ export function FormatErrorObject(object: any) {
const jsonString = stringify(returnData);

// strip ansi colors
return jsonString.replace(/\\u001B\[\d*m/gim, '');
const colorStripped = jsonString.replace(/\\u001B\[\d*m/gim, '');

// add new line at the end for better local readability
return `${colorStripped}\n`;
}

const print = w.format.printf((info: any) => {
Expand Down

0 comments on commit f118e8d

Please sign in to comment.