Skip to content

Commit

Permalink
Update error reports
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jan 12, 2017
1 parent 013a091 commit ac51be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/controllers/Grbl/GrblController.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class GrblController {

this.emitAll('serialport:read', `> ${line}`);
this.emitAll('serialport:read', JSON.stringify({
cnc: {
err: {
code: code,
msg: msg,
line: received + 1,
Expand All @@ -222,7 +222,7 @@ class GrblController {
this.emitAll('serialport:read', res.raw);
if (code) {
this.emitAll('serialport:read', JSON.stringify({
cnc: {
err: {
code: code,
msg: msg
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/controllers/TinyG2/TinyG2Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class TinyG2Controller {

this.emitAll('serialport:read', `> ${line}`);
this.emitAll('serialport:read', JSON.stringify({
cnc: {
err: {
code: code,
msg: err.msg,
line: received + 1,
Expand All @@ -196,7 +196,7 @@ class TinyG2Controller {
}));
} else {
this.emitAll('serialport:read', JSON.stringify({
cnc: {
err: {
code: code,
msg: err.msg
}
Expand Down

0 comments on commit ac51be5

Please sign in to comment.