ic-mops 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/commands/test.js +5 -0
  2. package/package.json +1 -1
package/commands/test.js CHANGED
@@ -190,6 +190,11 @@ function pipeMMF(proc, mmf) {
190
190
  // change absolute file path to relative
191
191
  // change :line:col-line:col to :line:col to work in vscode
192
192
  let res = `${absToRel(m1)}:${m2}:${m3}`;
193
+
194
+ if (!fs.existsSync(m1)) {
195
+ return res;
196
+ }
197
+
193
198
  // show failed line
194
199
  let content = fs.readFileSync(m1);
195
200
  let lines = content.toString().split('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "cli.js"