public_activity icon indicating copy to clipboard operation
public_activity copied to clipboard

Display more Exception detail.

Open aquadrehz opened this issue 5 years ago • 5 comments

This help me tracking issue a lot.

aquadrehz avatar Aug 15 '19 11:08 aquadrehz

I can't understand Chinese. Can you try in English instead? @chenqiongqiong

aquadrehz avatar Sep 24 '21 07:09 aquadrehz

@aquadrehz Could you elaborate a little more how it helped you?

ur5us avatar Jun 21 '22 01:06 ur5us

@ur5us I just use e to print the error traceback detail and fix the issue 2 years ago. It's been a while so I can't remember the detail. I would recommend merging it if it's ok. Rejecting it would be fine as well. I just don't want to leave it open forever, ya

aquadrehz avatar Jun 21 '22 03:06 aquadrehz

@aquadrehz Allow me to rephrase my question: how did it help you to solve your problem? What information does the exception carry that helped you resolve your issue? I’m not completely opposed to merging the PR if it adds valuable detail. However, without further detail it’s hard for me to understand the value add. @chenqiongqiong kindly reviewed your code. While I can’t read (presumably) Mandarin I think what @chenqiongqiong suggested is to extend the same logic to all other exceptions. However, based on our own “wrappers” for these exception types the intention is to reduce noise. Thus, I’m curious how added that helped you? Rails itself will blow up with same exception if it can’t connect to the database.

ur5us avatar Jun 21 '22 04:06 ur5us

That time I use the printed warning to check that the DB configuration is incorrect.

If not use this gem the exception would be obvious and failed tom start to app at all.

aquadrehz avatar Jun 21 '22 07:06 aquadrehz

@aquadrehz Sorry for the late reply. Could you please elaborate on the following:

If not use this gem the exception would be obvious and failed tom start to app at all.

I think this is the important bit but I’m not sure I understand the issue 100% yet. How would the exception be (more) obvious if this gem wasn’t used?

ur5us avatar Nov 30 '22 03:11 ur5us

@aquadrehz Could you provide a bit more info as requested in my previous comment?

ur5us avatar Jan 09 '23 02:01 ur5us

Closing this PR due to lack of further communication and not clearly explaining how this PR solves problems when the database server is not running. Rails will usually handle such errors with enough warnings and errors just fine, so not sure what the problem is.

ur5us avatar Jan 20 '24 03:01 ur5us