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

Add user friendly errors #3

Open
skybird23333 opened this issue Jul 29, 2021 · 0 comments
Open

Add user friendly errors #3

skybird23333 opened this issue Jul 29, 2021 · 0 comments
Milestone

Comments

@skybird23333
Copy link

If you execute logs command without the process argument for example, JanD returns something like this:

JanD v0.6.0
Getting last 15 lines of stdout logs...
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowIndexOutOfRangeException() + 0x20
   at JanD.Program.<Main>g__TailLog|6_1(String, Int32, Program.<>c__DisplayClass6_0&, Program.<>c__DisplayClass6_1&) + 0x1a3
   at JanD.Program.<Main>d__6.MoveNext() + 0x1740
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xc5
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x46
   at JanD.Program.<Main>(String[]) + 0x20
   at jand!<BaseAddress>+0x30188a
Aborted (core dumped)

This can be confusing if someone accidentally just forgot to pass the argument, and this error is not exactly helpful in pointing out what happened.

@Jan0660 Jan0660 added this to the v1.0 milestone Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants