Check if an MPI return code signaled an error. If so, print the corresponding message and abort the execution.
Error code