process error when setting network name

This commit is contained in:
Steven Allen 2020-09-28 15:59:11 -07:00
parent c0b316fd9c
commit a314cfd237

View File

@ -480,7 +480,9 @@ func setNetworkName(ctx context.Context, store adt.Store, tree *state.StateTree,
return xerrors.Errorf("reading init state: %w", err)
}
initState.SetNetworkName(name)
if err := initState.SetNetworkName(name); err != nil {
return xerrors.Errorf("setting network name: %w", err)
}
ia.Head, err = store.Put(ctx, initState)
if err != nil {