MCPcopy Create free account
hub / github.com/akalin/gopar / ExitCodeForCreateErrorPar2CmdLine

Function ExitCodeForCreateErrorPar2CmdLine

par2/create.go:141–147  ·  view source on GitHub ↗

ExitCodeForCreateErrorPar2CmdLine returns the error code par2cmdline would have returned for the given error returned by Create.

(err error)

Source from the content-addressed store, hash-verified

139// par2cmdline would have returned for the given error returned by
140// Create.
141func ExitCodeForCreateErrorPar2CmdLine(err error) int {
142 if err != nil {
143 // Map everything to eFileIOError for now.
144 return par2cmdline.ExitFileIOError
145 }
146 return par2cmdline.ExitSuccess
147}

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected