That change would not have made anything start working correctly. The point was try try to find an error message or status code that might help us figure out why it's failing on your side.
Actually, it would be even better to add a default case at the end of that switch() block to see if there's any other error codes that I might have missed handling.
This one will probably print a lot of codes to the debug console, and not all of them will necessarily be bad, but it might give us some clues. If there's anything new in the debug console, please confirm and paste the contents of the console here!