nodalis-compiler 1.0.25 → 1.0.26

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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Changelog
2
+ ## [1.0.26] 2026-03-19
3
+ - Improved error handling on programming.
2
4
 
3
5
  ## [1.0.25] 2026-03-18
4
6
  - Added line number errors to compilers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodalis-compiler",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Compiles IEC-61131-3/10 languages into code that can be used as a PLC on multiple platforms.",
5
5
  "icon": "nodalis.png",
6
6
  "main": "src/nodalis.js",
@@ -32,7 +32,7 @@ export class MTIProgrammer extends Programmer {
32
32
  async program() {
33
33
  let result = true;
34
34
  try {
35
- runMticp([
35
+ await runMticp([
36
36
  "action=sendxml",
37
37
  `src=${this.options.source}`,
38
38
  `dst=${this.options.destination}`
@@ -43,6 +43,7 @@ export class MTIProgrammer extends Programmer {
43
43
  })
44
44
  .catch(err => {
45
45
  // Print any error from the binary and exit non-zero
46
+ result = false;
46
47
  console.error(err.message || err);
47
48
  });
48
49
  }