Changeset 6021

Show
Ignore:
Timestamp:
11/01/12 14:03:44 (7 years ago)
Author:
cmatthew
Message:

fixed bad return value problem.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/fs_open.repy

    r5144 r6021  
    3232        result_fd = open_syscall(file_name, flags, mode) 
    3333    except SyscallError, e: 
    34         message = "Could not find file: " + file_name + "\n" + str(e) + "\n" 
    35         # log(message) 
    36         return ErrorResponseBuilder("fs_open", "ENOENT", message) 
     34        message = "Could not find file: " + file_name + ":\n" + str(e[2]) + "\n" 
     35        return ErrorResponseBuilder("fs_open", e[1], message) 
    3736    return SuccessResponseBuilder("fs_open", result_fd) 
    3837