In this piece of code, only the err variable is checked for errors. There can be errors that do not cause the POST request to return an error though, like described here. Those errors should be caught as well and relayed to the user in some way to make debugging issues easier.
In this piece of code, only the
err
variable is checked for errors. There can be errors that do not cause the POST request to return an error though, like described here. Those errors should be caught as well and relayed to the user in some way to make debugging issues easier.