Commit 4fad0f72 authored by Juan Benet's avatar Juan Benet

Merge pull request #1827 from rht/metalint

Add err check to coremock node init
parents e051b8cd 53bb0b63
...@@ -58,6 +58,9 @@ func MockCmdsCtx() (commands.Context, error) { ...@@ -58,6 +58,9 @@ func MockCmdsCtx() (commands.Context, error) {
node, err := core.NewNode(context.Background(), &core.BuildCfg{ node, err := core.NewNode(context.Background(), &core.BuildCfg{
Repo: r, Repo: r,
}) })
if err != nil {
return commands.Context{}, err
}
return commands.Context{ return commands.Context{
Online: true, Online: true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment