add error and warning when error on deploy