Skip to content

Commit 2ff8eb6

Browse files
committed
Merge pull request #55 from AnyFetch/replace_file-path
remove file_path from errors
2 parents ed554af + e84e0d3 commit 2ff8eb6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/helpers/child-process.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ process.on('message', function(task) {
113113
extra.fromChild = true;
114114
extra.changes = changes;
115115
logError(err, extra);
116+
116117
process.send({
117118
err: {
118119
message: err.toString(),

lib/helpers/hydrater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ module.exports = function(hydraterFunction, childs, opbeatConfig) {
135135
if(err._hydrationError) {
136136
res.changes = {};
137137
res.changes.hydration_errored = true;
138-
res.changes.hydration_error = err.message;
138+
res.changes.hydration_error = err.message.replace(task.file_path, "{file_path}");
139139
err = null;
140140
}
141141
else {

0 commit comments

Comments
 (0)