The printing of minor error status was broken
It attempted to print the error status only when there was no error (in if statement was inverted)