fix platform error message