More fixes for error messages (#5911)

This commit is contained in:
Anis Elleuch
2018-05-09 13:29:37 -07:00
committed by Dee Koder
parent 98f81ced86
commit c1f1fa3cc8
2 changed files with 32 additions and 32 deletions

View File

@@ -87,7 +87,7 @@ func errorToUIErr(err error) uiErr {
}
case *os.PathError:
if os.IsPermission(e) {
return uiErrNoPermissionsToAccessDirFiles(e).Msg("Unsufficent permissions to access `" + e.Path + "` path")
return uiErrNoPermissionsToAccessDirFiles(e).Msg("Insufficient permissions to access path, `" + e.Path + "`")
}
}
@@ -101,7 +101,7 @@ func errorToUIErr(err error) uiErr {
}
// fmtError() converts a fatal error message to a more understood error
// fmtError() converts a fatal error message to a more clear error
// using some colors
func fmtError(introMsg string, err error, jsonFlag bool) string {
renderedTxt := ""