Fixed output in Fortran - doesn't output error messages