Commit b803a35
authored
fix: improve missing package error messages (#149)
## Summary
Improve error messages when required commands are not found by providing specific installation instructions.
## Changes
- Refactor `check_package_installed()` to accept optional package name parameter
- Display `uv pip install` command when `llama` is missing
## Test plan
- Verify error messages display correct installation instructions when commands are missing
- Confirm existing functionality works when commands are present
## Summary by CodeRabbit
* **Bug Fixes**
* Clearer, more actionable error messages when required build commands are missing, with optional package hints.
* Reduced redundant or confusing installation prompts during pre-build checks.
* **Refactor**
* Unified command/installation validation into a single, consistent flow for simpler, more reliable diagnostics and output.
<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>
Approved-by: nathan-weinberg
Approved-by: rhdedgar
Approved-by: skamenan71 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
265 | | - | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | | - | |
269 | | - | |
| 273 | + | |
270 | 274 | | |
271 | 275 | | |
272 | 276 | | |
| |||
0 commit comments