diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 21:00:51 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 21:00:51 +0000 |
commit | 3ad035d23169b020e1516ed2b77689044b69ba46 (patch) | |
tree | d78fe020b4a4eeaa5e490bc1128961ede0269fec /base | |
parent | d28c6952f0a51d454a014e9da2c16be74ab2ae69 (diff) | |
download | chromium_src-3ad035d23169b020e1516ed2b77689044b69ba46.zip chromium_src-3ad035d23169b020e1516ed2b77689044b69ba46.tar.gz chromium_src-3ad035d23169b020e1516ed2b77689044b69ba46.tar.bz2 |
posix: print error message when mkdtemp fails.
Failure seen on the buildbots. It would help to know why.
Review URL: http://codereview.chromium.org/3067013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_util_posix.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 434c859..4d9cf42 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -420,8 +420,10 @@ static bool CreateTemporaryDirInDirImpl(const FilePath& base_dir, // this should be OK since mkdtemp just replaces characters in place char* buffer = const_cast<char*>(sub_dir_string.c_str()); char* dtemp = mkdtemp(buffer); - if (!dtemp) + if (!dtemp) { + DPLOG(ERROR) << "mkdtemp"; return false; + } *new_dir = FilePath(dtemp); return true; } |