add extra info to error log