Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a nicer message on invalid or no module #179

Closed
Glutexo opened this issue Apr 7, 2023 · 2 comments · Fixed by #249
Closed

Show a nicer message on invalid or no module #179

Glutexo opened this issue Apr 7, 2023 · 2 comments · Fixed by #249
Labels

Comments

@Glutexo
Copy link
Owner

Glutexo commented Apr 7, 2023

$ ./onigumo
** (FunctionClauseError) no function clause matching in Onigumo.CLI.main/1    
    
    The following arguments were given to Onigumo.CLI.main/1:
    
        # 1
        []
    
    (onigumo 0.1.0) lib/cli.ex:2: Onigumo.CLI.main/1
    (elixir 1.14.3) lib/kernel/cli.ex:131: anonymous fn/3 in Kernel.CLI.exec_fun/2 
@Glutexo
Copy link
Owner Author

Glutexo commented Aug 25, 2024

Now, with OptionParser in place, the error looks different:

$ onigumo
** (MatchError) no match of right hand side value: :error
    (onigumo 0.1.0) lib/cli.ex:16: Onigumo.CLI.main/1
    (elixir 1.17.2) lib/kernel/cli.ex:136: anonymous fn/3 in Kernel.CLI.exec_fun/2

@Glutexo
Copy link
Owner Author

Glutexo commented Nov 9, 2024

Fixed by #249.

@Glutexo Glutexo closed this as completed Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants