• David du Colombier's avatar
    os: homogenize error checks on Plan 9 · 157d8cfb
    David du Colombier authored
    Remove leading space at the beginning of error strings,
    so the strings are consistent between isExist, isNotExist
    and isPermission functions.
    
    Here is a list of error strings returned on the most common
    file servers on Plan 9:
    
         match                     cwfs                      fossil                   ramfs
    
    "exists"            "create/wstat -- file exists"  "file already exists"    "file exists"
    "is a directory"                                   "is a directory"         "file is a directory"
    
    "does not exist"                                   "file does not exist"    "file does not exist"
    "not found"         "directory entry not found"
    "has been removed"                                 "file has been removed"
    
    "permission denied" "access permission denied"     "permission denied"      "permission denied"
    
    "no parent" is an error returned by lib9p when removing a file without parent.
    
    Change-Id: I2362ed4b6730b8bec7a707a1052bd1ad8921cd97
    Reviewed-on: https://go-review.googlesource.com/89315Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: 's avatarRob Pike <r@golang.org>
    157d8cfb
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...