Changeset 1245


Ignore:
Timestamp:
Oct 25, 2010, 5:43:30 AM (11 years ago)
Author:
Peter Johansson
Message:

prefer errno_error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r1186 r1245  
    227227    char buffer[MAXPATHLEN];
    228228    if (!getcwd(buffer, MAXPATHLEN))
    229       throw std::runtime_error("Failed to get current working directory");
     229      throw yat::utility::errno_error("pwd: ");
    230230    return std::string(buffer);
    231231  }
Note: See TracChangeset for help on using the changeset viewer.