joelanman,
@joelanman@hachyderm.io avatar

@woodsbythesea thanks! Yeh I shouldve given more context, I'm writing a controller in express.js, and in it I have to await a bunch of db calls. So without error handling I'd have

const users = await User.getUsers()  

but the db call can fail so I have to wrap with try. Claude.ai is suggesting wrapping all the code in the controller in the try, which sidesteps my const issue

  • All
  • Subscribed
  • Moderated
  • Favorites
  • javascript
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • JUstTest
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines