-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
In SalesTracker, if an expected SQL query file (such as insertSale.sql, etc.) is missing, only a warning is logged, but the code does not prevent subsequent database operations from failing due to undefined or invalid queries.
Steps to Reproduce
- Remove or rename a query file under
data/queries/(e.g.,insertSale.sql). - Use a feature that requires this query (e.g., tracking a sale).
- Notice potential failures when attempting to use undefined queries.
Expected Behavior
Bot should fail more gracefully or at least provide clearer feedback when a required query is missing, rather than continuing with possibly undefined objects.
Suggested Fix
- Check criticality for missing queries, and if they are required for core functions, throw errors instead of only logging warnings.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working