Error catching for badly formed deploy files