Kafil Ahmed asked 2 years ago

Assalam u alaikum …
I found a mistake of my colleague, if i inform to my head its a loss for my colleague and if i didn’t inform its loss for my head. so i said to my colleague to try to rectify the mistake and in the mean time I informed to my head. Alhamdulillah now the problem is solved but i want to know what i did is  correct or wrong ? plz explain me in the light of Islam ?
 
Thanks in Advance!!!