@@ -230,19 +230,19 @@ func Create(ctx context.Context, client *containerd.Client, args []string, netMa
230230 cOpts = append (cOpts , restartOpts ... )
231231
232232 if err = netManager .VerifyNetworkOptions (ctx ); err != nil {
233- return nil , generateRemoveStateDirFunc (ctx , id , internalLabels ), fmt .Errorf ("failed to verify networking settings: %s " , err )
233+ return nil , generateRemoveStateDirFunc (ctx , id , internalLabels ), fmt .Errorf ("failed to verify networking settings: %w " , err )
234234 }
235235
236236 netOpts , netNewContainerOpts , err := netManager .ContainerNetworkingOpts (ctx , id )
237237 if err != nil {
238- return nil , generateRemoveOrphanedDirsFunc (ctx , id , dataStore , internalLabels ), fmt .Errorf ("failed to generate networking spec options: %s " , err )
238+ return nil , generateRemoveOrphanedDirsFunc (ctx , id , dataStore , internalLabels ), fmt .Errorf ("failed to generate networking spec options: %w " , err )
239239 }
240240 opts = append (opts , netOpts ... )
241241 cOpts = append (cOpts , netNewContainerOpts ... )
242242
243243 netLabelOpts , err := netManager .InternalNetworkingOptionLabels (ctx )
244244 if err != nil {
245- return nil , generateRemoveOrphanedDirsFunc (ctx , id , dataStore , internalLabels ), fmt .Errorf ("failed to generate internal networking labels: %s " , err )
245+ return nil , generateRemoveOrphanedDirsFunc (ctx , id , dataStore , internalLabels ), fmt .Errorf ("failed to generate internal networking labels: %w " , err )
246246 }
247247
248248 envs = append (envs , "HOSTNAME=" + netLabelOpts .Hostname )
0 commit comments