Skip to content

Commit 7ee5095

Browse files
authored
Merge pull request #2 from lfabl/develop
Bugfix: code stage error fixed.
2 parents 779f916 + 5e670fd commit 7ee5095

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ let OPTIONS = {
99
datePureTitle: "Error Date ( Pure )",
1010
dateFormattedTitle: "Error Date ( Formatted )",
1111
formattedDateConfig: "DD MMMM YYYY hh:mm A",
12-
isWriteCode: true,
1312
isWritePureDate: true,
1413
isWriteFormattedDate: true
1514
};
@@ -48,7 +47,7 @@ const error_log = ({
4847
${_options.messageTitle}: ${message}
4948
`;
5049

51-
if (_options.isWriteCode) {
50+
if (code) {
5251
errorData += `${_options.codeTitle}: ${code}`;
5352
}
5453

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "error-printer",
3-
"version": "1.0.0-pre-alpha.2",
3+
"version": "1.0.0-pre-alpha.3",
44
"description": "This project was developed for Node JS APIs need to error handling on production.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)