Skip to content

Check if path exists before compiling #8

@kenorb

Description

@kenorb

If path doesn't exist before compiling (file or dir), the following error happens:

Run fx31337/mql-compile-action@master
  with:
    path: src\EA31337
    mt-version: 5.0.0.2361
    mt-cleanup: false
    ignore-warnings: false
    log-file: mql.log
    syntax-only: false
    verbose: false
internal/fs/utils.js:220
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'mql.log'
    at Object.openSync (fs.js:440:3)
    at Object.readFileSync (fs.js:342:35)
    at d:\a\_actions\fx31337\mql-compile-action\master\dist\index.js:9492:16
    at ChildProcess.exithandler (child_process.js:286:7)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'mql.log'
}

Build: 768750528

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions