edit exit code on warnings