the command will return 5 if there are five errors. this is broken with your proposition