Skip to content

Commit 571e489

Browse files
committed
python package checking,error handling and proper messaging
1 parent 2bc0f0e commit 571e489

File tree

4 files changed

+33
-21
lines changed

4 files changed

+33
-21
lines changed

bin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async function run(argv:AnyObject) {
187187
console.log("Note: install @rover-tools/cli globally (install @rover-tools/cli -g)")
188188
}
189189
}catch (error) {
190-
console.log("Error: ",error)
190+
console.log("Error: ",error.message)
191191

192192
}
193193
}

cli-main/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ export let samValidate=async function(){
537537
throw new Error("SAM Template error \n")
538538
}
539539
} catch (error) {
540-
throw new Error("Not a SAM file or "+error)
540+
throw new Error("Not a SAM file or "+error.message)
541541
}
542542

543543
}

package-lock.json

Lines changed: 30 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"dependencies": {
77
"@iarna/toml": "^2.2.5",
8-
"@rover-tools/engine": "^0.0.46",
8+
"@rover-tools/engine": "file:../rover-engine",
99
"@types/inquirer": "^8.2.1",
1010
"esm": "^3.2.25",
1111
"immer": "^9.0.14",

0 commit comments

Comments
 (0)