The code works except for printing errors in order.
Any errors encountered while parsing files are supposed to be printed in
argument order, whereas the files are supposed to be printed in
alphabetical order by filename.
Currently both are printed in alphabetical order.