output sql errors on commandline