add file path to error log