fix: Catch exceptions at Circle::getInitiator during mountpoint setup#2314
fix: Catch exceptions at Circle::getInitiator during mountpoint setup#2314
Conversation
|
I'm not sure I understand well enough what you are trying to do. So let me try and write it down so you can check if it's matching:
Assuming that's your goal I agree with it. However this generic catching of exceptions will also catch errors in our own code - even syntax errors and only report them as log entries. I'm not a fan of simply logging unexpected errors - as they may remain unnoticed for quite a while. 500 responses scream - there's something wrong on the server - look at the logs. Log entries alone are quiet in many contexts (for example our current CI). Instead I'd prefer to keep the scope of generic error handling as small as possible. I.e. catching generic exceptions thrown by circles, rethrowing them as our own Exception - for example |
|
Thanks for your thoughts @max-nextcloud
Yes, you nailed it 😆
Indeed, I agree.
This sounds like a good way forward to me 👍 |
5a5b23b to
51083b7
Compare
51083b7 to
9ea513f
Compare
Signed-off-by: Jonas <jonas@freesources.org>
9ea513f to
5992662
Compare
|
@max-nextcloud I refactored the change now to only catch generic exceptions at |
Extracted from #2229 and adapted
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)