Commit 77719dfd authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti Committed by Sebastien Ponce
Browse files

Improved messages returned by stager_qry on ENOENT

parent b4faecf5
......@@ -187,9 +187,9 @@ castor::stager::daemon::QueryRequestSvcThread::handleFileQueryRequestByFileName
if (result == 0 || result->size() == 0) { // sanity check, result always is != 0
castor::exception::Exception e(ENOENT);
if (svcClassId > 0)
e.getMessage() << "File " << fileName << " not on this service class";
e.getMessage() << "File " << fileName << " not available on this service class";
else
e.getMessage() << "File " << fileName << " not on disk cache";
e.getMessage() << "File " << fileName << " not currently available on the disk cache";
if (result != 0)
delete result;
throw e;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment