Every tenant who receives notice of any proceeding to recover the real property occupied by him or the possession thereof must immediately inform his landlord of the same, and also deliver to the landlord the notice, if in writing, and is responsible to the landlord for all damages which said landlord may sustain by reason of any omission to inform him of the notice, or to deliver it to him if in writing.
R.L. 1910, § 3820.