display error message when failing to delete file