Skip to content
Snippets Groups Projects
Commit 37ea1211 authored by Max Schmitt's avatar Max Schmitt
Browse files

feat: added also which network/volume was not found

parent 75fdd5b4
No related branches found
No related tags found
No related merge requests found
......@@ -258,7 +258,7 @@ func (d *Driver) Create() error {
return errors.Wrap(err, "could not get network by ID or name")
}
if network == nil {
return errors.New("network not found")
return errors.Errorf("network '%s' not found", networkIDorName)
}
networks = append(networks, network)
}
......@@ -271,7 +271,7 @@ func (d *Driver) Create() error {
return errors.Wrap(err, "could not get volume by ID or name")
}
if volume == nil {
return errors.New("volume not found")
return errors.Errorf("volume '%s' not found", volumeIDorName)
}
volumes = append(volumes, volume)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment