Eliminated deprecated usages of Error if mtl ≥ 2.2.1