DEV Community

Discussion on: Handle Javascript errors like in Go

Collapse
 
marcisbee profile image
Marcis Bergmanis

Second snippet from bottom has if (err) {.
Shouldn't it be if (error) {?

Collapse
 
ivanalejandro0 profile image
Ivan Alejandro

Yes, you're right, thanks for pointing it out.