okay, you are right, I must have looked at the wrong file before. sorry!
I added the ```break;``` if all error codes are set.