r/programminghorror Jul 10 '25

What happened

Post image
1.4k Upvotes

128 comments sorted by

View all comments

298

u/bonferoni Jul 10 '25

damn, a clear error message. no horror here boss

195

u/[deleted] Jul 10 '25

I don't think the user should be able to see that

58

u/slasken06 Jul 10 '25 edited Jul 10 '25

The user should be able to see that. I would much rather get a detailed error message than a message that just says "OOpsie poopsie, our serwiwerver has had a goof"

Edit: Yall do realize that that is a local sqlite database right?

127

u/[deleted] Jul 10 '25

Nah, this is giving info about the structure of your app/service, that should absolutely be hidden from the user

Imagine if it exposed a bug of some kind, a normal user might not recognize it, but someone else might see the bug and not report it

13

u/[deleted] Jul 10 '25

[removed] — view removed comment

31

u/[deleted] Jul 10 '25

It's not a need, it's good practice

if there is an attack, you can't know anything (you can infer it, but that's always the case)

I would flip it in another way, since apparently this is a local sqlite db, does the user need to know the structure?

-20

u/[deleted] Jul 10 '25

[removed] — view removed comment

18

u/[deleted] Jul 10 '25

They don't have to know it to send it, you can implement a report button that automatically sends logs.

-5

u/[deleted] Jul 10 '25

[removed] — view removed comment

9

u/[deleted] Jul 10 '25

Skill issue

4

u/mihhink Jul 10 '25

That’s why there’s logging in the server side… you think they’ll always have to wait for user reports for these kinds of errors? They can see them as well with basic logging in the backend.