Update Package Version and display error instead of log
This commit is contained in:
parent
ac42d9463e
commit
3b0652ccce
3 changed files with 4 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@adafruit/circuitpython-repl-js",
|
||||
"version": "1.0.0",
|
||||
"version": "1.2.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@adafruit/circuitpython-repl-js",
|
||||
"version": "1.0.0",
|
||||
"version": "1.2.2",
|
||||
"license": "MIT",
|
||||
"devDependencies": {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"publishConfig": {
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"version": "1.2.2",
|
||||
"description": "A JavaScript Module to help with interfacing to the REPL on CircuitPython Devices over serial",
|
||||
"main": "repl.js",
|
||||
"dependencies": {
|
||||
|
|
|
|||
2
repl.js
2
repl.js
|
|
@ -83,7 +83,7 @@ export class REPL {
|
|||
}, this.promptTimeout
|
||||
);
|
||||
} catch (error) {
|
||||
console.log("Awaiting prompt timed out.");
|
||||
console.error("Awaiting prompt timed out.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue