fix: Update error message format based on feedback

Signed-off-by: June Rhodes <504826+hach-que@users.noreply.github.com>
This commit is contained in:
June Rhodes 2023-03-17 06:49:12 +11:00 committed by GitHub
parent 3193650f13
commit f48ae22273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ func parseMount(osi osinterface.OS, mount *runtime.Mount) (*runtimespec.Mount, e
originalSrc := src originalSrc := src
src, err = osi.ResolveSymbolicLink(src) src, err = osi.ResolveSymbolicLink(src)
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to resolve symlink '%q' (resolved to '%q'): %w", originalSrc, src, err) return nil, fmt.Errorf("failed to resolve symlink %q: %w", originalSrc, err)
} }
// hcsshim requires clean path, especially '/' -> '\'. Additionally, // hcsshim requires clean path, especially '/' -> '\'. Additionally,
// for the destination, absolute paths should have the C: prefix. // for the destination, absolute paths should have the C: prefix.