We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 779f916 + 5e670fd commit 7ee5095Copy full SHA for 7ee5095
2 files changed
index.js
@@ -9,7 +9,6 @@ let OPTIONS = {
9
datePureTitle: "Error Date ( Pure )",
10
dateFormattedTitle: "Error Date ( Formatted )",
11
formattedDateConfig: "DD MMMM YYYY hh:mm A",
12
- isWriteCode: true,
13
isWritePureDate: true,
14
isWriteFormattedDate: true
15
};
@@ -48,7 +47,7 @@ const error_log = ({
48
47
${_options.messageTitle}: ${message}
49
`;
50
51
- if (_options.isWriteCode) {
+ if (code) {
52
errorData += `${_options.codeTitle}: ${code}`;
53
}
54
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "error-printer",
3
- "version": "1.0.0-pre-alpha.2",
+ "version": "1.0.0-pre-alpha.3",
4
"description": "This project was developed for Node JS APIs need to error handling on production.",
5
"main": "index.js",
6
"scripts": {
0 commit comments