Improve CLI validation and error handling#6
Improve CLI validation and error handling#6AyushMohite08 wants to merge 1 commit intomaybe-adev:mainfrom
Conversation
|
Can you refine the keyword error handling for keywords? Picture Attached where mainly I want change. |
|
@maybe-adev |
Okay, I am trying to explain by giving an example of an error: Here error on showw("hello"): showw not an keyword but show is a keyword. |
|
Hey @AyushMohite08 , |
|
Thanks for checking in! |

📥 Pull Request
📝 Summary
What does this PR do?
This PR improves the stability, validation, and error handling of the Pearlen CLI.
It ensures invalid inputs and runtime errors are handled gracefully, without crashing the CLI or exposing raw Python tracebacks to users.
🔍 Related Issue
Closes:
#4✅ Type of Change
📚 Description of Changes
This PR focuses on improving CLI reliability and user experience:
.pearlfile usage and file existenceThe CLI now acts as a proper boundary layer, handling user-facing concerns while allowing interpreter errors to propagate cleanly.
🧪 Tests & Verification
Details:
.pearlfilespearl <file>.pearlexecution viapearl.baton Windows📸 Screenshots / Demos (If Applicable)
Not applicable for this change.
📦 Breaking Changes?
📘 Checklist
🙏 Additional Notes
This PR does not modify lexer, parser, or evaluator logic.
Changes are intentionally scoped to CLI stability and error handling only.