DEV-64 | show warning when occured errors

we should move all below function to utility file