1
0
Fork 0

improve error message

This commit is contained in:
jsteemann 2019-03-29 19:34:44 +01:00
parent e42a097d54
commit ca74d7882b
1 changed files with 2 additions and 2 deletions

View File

@ -623,7 +623,7 @@ arangodb::Result restoreData(arangodb::httpclient::SimpleHttpClient& httpClient,
if (!datafile || datafile->status().fail()) {
datafile = jobData.directory.readableFile(cname + ".data.json");
if (!datafile || datafile->status().fail()) {
result = {TRI_ERROR_CANNOT_READ_FILE, "could not open file"};
result = {TRI_ERROR_CANNOT_READ_FILE, "could not open data file for collection " + cname + "'"};
return result;
}
}
@ -653,7 +653,7 @@ arangodb::Result restoreData(arangodb::httpclient::SimpleHttpClient& httpClient,
}
// we read something
buffer.increaseLength(numRead);
jobData.stats.totalRead += (uint64_t)numRead;
jobData.stats.totalRead += static_cast<uint64_t>(numRead);
numReadForThisCollection += numRead;
numReadSinceLastReport += numRead;