Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Additional error report logging
Browse files Browse the repository at this point in the history
  • Loading branch information
filipbudisa committed Mar 8, 2022
1 parent 7815a77 commit 8d3436f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion core/compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,11 @@ export default class ArduinoCompiler {
const cliCommand = os.type() == "Windows_NT"
? "arduino-cli.exe"
: "./arduino-cli";
this.process = childProcess.execFile(cliCommand, ['daemon'], { cwd: this.installInfo.cli });
this.process = childProcess.execFile(cliCommand, ['daemon'], { cwd: this.installInfo.cli }, (e, stdout, stderr) => {
logger.log("Daemon run error", e);
logger.log("Daemon run stdout", stdout);
logger.log("Daemon run stderr", stderr);
});

const req = new InitRequest();
req.setLibraryManagerOnly(false);
Expand Down
5 changes: 4 additions & 1 deletion core/compiler/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ export default class Installer {
'install',
this.downloads.nibble.fqbn
]);
})().then(() => this.installRingoLib(callback, info, stage)).catch(e => callback("Library update error. Please check your internet connection."));
})().then(() => this.installRingoLib(callback, info, stage)).catch(e => {
logger.log("Library update", e);
callback("Library update error. Please check your internet connection.")
});
}

private arduino(callback: (err) => void) {
Expand Down

0 comments on commit 8d3436f

Please sign in to comment.