They are equivalent.
Can you confirm that the err is ever about aborted transactions? The snippet you shared is the proper way to catch them.
They are equivalent.
Can you confirm that the err is ever about aborted transactions? The snippet you shared is the proper way to catch them.