mirror of https://gitee.com/bigwinds/arangodb
print error details
This commit is contained in:
parent
7f58b05df9
commit
00e6f2fc2c
|
@ -567,10 +567,15 @@ static int CreateApplicationDirectory (char const* name,
|
||||||
res = TRI_CreateDirectory(path);
|
res = TRI_CreateDirectory(path);
|
||||||
|
|
||||||
if (res == TRI_ERROR_NO_ERROR) {
|
if (res == TRI_ERROR_NO_ERROR) {
|
||||||
LOG_INFO("created application directory '%s' for database '%s'", path, name);
|
LOG_INFO("created application directory '%s' for database '%s'",
|
||||||
|
path,
|
||||||
|
name);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LOG_ERROR("unable to create application directory '%s' for database '%s'", path, name);
|
LOG_ERROR("unable to create application directory '%s' for database '%s': %s",
|
||||||
|
path,
|
||||||
|
name,
|
||||||
|
TRI_errno_string(res));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue