-
Notifications
You must be signed in to change notification settings - Fork 79
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
Update nexus readonly error to include reason text (SYN-6148) #3359
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3359 +/- ##
==========================================
- Coverage 97.30% 97.20% -0.11%
==========================================
Files 228 228
Lines 46723 46731 +8
==========================================
- Hits 45463 45424 -39
- Misses 1260 1307 +47
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
synapse/lib/nexus.py
Outdated
@@ -271,7 +276,7 @@ async def issue(self, nexsiden, event, args, kwargs, meta=None): | |||
assert self.started, 'Attempt to issue before nexsroot is started' | |||
|
|||
if self.readonly: | |||
raise s_exc.IsReadOnly(mesg='Unable to issue Nexus events when readonly is set') | |||
raise s_exc.IsReadOnly(mesg=self.readonlyreason) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a default if reason isn't specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a default reason.
No description provided.