Any error in genesis build should panic
The logger is not initialized by Substrate when using the build-spec subcommand. I think it’s better to panic immediately on any error during the genesis build, because we shouldn’t build a genesis with errors anyway.