Skip to content

Commit

Permalink
packager-worker-for-buck: transformCommand: add test
Browse files Browse the repository at this point in the history
Reviewed By: davidaurelio

Differential Revision: D6232002

fbshipit-source-id: 8bdd0dd0dabff4b92b4c2d7b4c3f7a2d90723bee
  • Loading branch information
Jean Lauliac authored and facebook-github-bot committed Nov 6, 2017
1 parent e0202e4 commit 73a01be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions local-cli/__mocks__/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ fs.open.mockImplementation(function(filepath) {
}

if (error || data == null) {
error = Error(`ENOENT: no such file or directory, open ${filepath}`);
error = Error(`ENOENT: no such file or directory: \`${filepath}\``);
}
if (data != null) {
/* global Buffer: true */
Expand Down Expand Up @@ -409,7 +409,9 @@ function getToNode(filepath) {
}
node = node[part];
if (node == null) {
const err = new Error('ENOENT: no such file or directory');
const err = new Error(
`ENOENT: no such file or directory: \`${filepath}\``,
);
err.code = 'ENOENT';
throw err;
}
Expand Down

0 comments on commit 73a01be

Please sign in to comment.