Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Handle file not found errors gracefully

  • Loading branch information...
commit fe42428a53384f70b4e9671c7cea1b3670525beb 1 parent 763331a
Luke Closs authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  ometastore.ml
3  ometastore.ml
@@ -232,7 +232,8 @@ let fix_usergroup e =
232 232 try
233 233 out "%s: set owner/group to %S %S\n" e.path e.owner e.group;
234 234 chown e.path (getpwnam e.owner).pw_uid (getgrnam e.group).gr_gid;
235   - with Unix_error _ -> ( out "chown failed: %s\n" e.path )
  235 + with | Unix_error _ -> ( out "chown failed: %s\n" e.path )
  236 + | Not_found -> ( out "File is missing: %s\n" e.path )
236 237
237 238 let fix_xattrs src dst =
238 239 out "%s: fixing xattrs (" src.path;

0 comments on commit fe42428

Please sign in to comment.
Something went wrong with that request. Please try again.