Reading Compile/run errors from outside TurboPascal

I need to find out what compile errors have occured in Turbo Pascal
running in a dos window whilst running a "toolbook" application.
Does Turbo have any special system variable for recording errors?
                Thanks
                        Steve Ball