mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-06 21:51:29 +00:00
refactor(utils/copyfile): start error statment with a Capital letter
This commit is contained in:
committed by
Karthik Prabhu Vinod
parent
bbee33e34e
commit
bcba22efc8
+2
-2
@@ -114,7 +114,7 @@ func CopyFile(src string, dest string) error {
|
||||
destDir := filepath.Dir(dest)
|
||||
if _, err := os.Stat(destDir); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return errors.Errorf("no such dest directory: %s", destDir)
|
||||
return errors.Errorf("No such dest directory: %s", destDir)
|
||||
}
|
||||
return errors.Wrap(err)
|
||||
}
|
||||
@@ -122,7 +122,7 @@ func CopyFile(src string, dest string) error {
|
||||
srcFile, err := os.Open(src)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return errors.Errorf("no such file: %s", src)
|
||||
return errors.Errorf("No such file: %s", src)
|
||||
}
|
||||
return errors.Wrap(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user