luckyframework / luckyframework/avram

lucky db.schema.dump does not show help message when argument is omitted

Open
#773 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

improve error experience
Dominant language
Crystal
Stars
183
Forks
67
PR merge metrics
No merged PRs in 30d

Description

image

When no arg is passed to db.schema.dump, it results in a fatal error.
It seems like there is intended to be an "uhoh" message that never shows up, here https://github.com/luckyframework/avram/blob/master/src/avram/tasks/db/schema_dump.cr#L11-L19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/avram/tasks/db/schema_dump.cr at the referenced lines and run db.schema.dump without an argument to reproduce the fatal error. Trace why the intended "uhoh" message is not shown, then verify that the command displays that message instead of failing fatally.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
cli, database
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.