Make Parse return an error instead of panicking