Add location of current displayed file to warning