How to catch ErrAborted in dgraph go client

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.