scottgonzalez / debt

DEBT: Exceptional Bug Tracking
MIT License
5 stars 2 forks source link

Comment: Handle foreign key errors #41

Closed scottgonzalez closed 10 years ago

scottgonzalez commented 10 years ago

comment.create() checks for the existence of ticketId and userId, but it doesn't check for the validity of provided values. The database will reject invalid values due to a foreign key error. These errors should be detected and turned into custom errors with proper codes.

scottgonzalez commented 10 years ago

Fixed in f392a17fc8dd5f17dacdbdc06f07888de3e63e61.