error handling when manifest's json is invalid