PR-URL: https://github.com/nodejs/node/pull/42678 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
11 lines
162 B
JavaScript
11 lines
162 B
JavaScript
"use strict";
|
|
|
|
module.exports = function(it) {
|
|
const { path, message } = it;
|
|
|
|
return `
|
|
Failed to read JSON file at ${path}:
|
|
|
|
${message}
|
|
`.trimStart();
|
|
};
|