Skip to content

Commit

Permalink
Warn on non-existent local paths (#1341)
Browse files Browse the repository at this point in the history
* Update cml.js

* Fix typo

* Add `absolutePath` also

* Switch log level to debug
  • Loading branch information
0x2b3bfa0 authored Jun 3, 2023
1 parent 1bef313 commit 321d659
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ class CML {
url: publishUrl
});
} catch (err) {
if (err.code !== 'ENOENT') throw err;
if (err.code === 'ENOENT')
winston.debug(`file not found: ${node.url} (${absolutePath})`);
else throw err;
}
}
};
Expand Down

0 comments on commit 321d659

Please sign in to comment.