Fix error check in blink example.