Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Stacktrace Print on Error in Development Environments #97

Open
iosifache opened this issue Nov 6, 2022 · 2 comments
Open

Stacktrace Print on Error in Development Environments #97

iosifache opened this issue Nov 6, 2022 · 2 comments
Labels
good-first-issue Issues that can be implemented by a new contributor improvement Improvement

Comments

@iosifache
Copy link
Member

Improvement Description

The except in the cli module catches all exception. This makes MutableSecurity more user-friendly. As a regular user, you don't want to see a messy stack trace directly into your terminal. You only want to know the reason, a thing that can be achieved with a pretty error message.

The same does not apply to development environments. If an error occurs after changing the codebase, you are interested in seeing more than a shallow reason, namely a stack trace. It helps to have a starting point in the debugging process.

Possible Solution

In the cli module, the except can check if the user is a developer (using the configuration module). If it is, then the stacktrace is printed.

Contact Details

No response

@iosifache iosifache added improvement Improvement good-first-issue Issues that can be implemented by a new contributor labels Nov 6, 2022
@camdenmcgath
Copy link

Hey @iosifache I would like to work on fixing this issue. I was wondering how you see the configuration module being helpful for determining if the user is a developer

@iosifache
Copy link
Member Author

Hi @camdenmcgath 👋,

There is a configuration member named developer_mode. You can check this example for verifying if a user is a developer (namely, if it's set to True).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good-first-issue Issues that can be implemented by a new contributor improvement Improvement
Projects
None yet
Development

No branches or pull requests

2 participants