Commit 4ab2ab4c authored by Eric Cano's avatar Eric Cano
Browse files

Changed error type for zero length file and added file path.

USerError will prevent the frontend from logging a stack trace.
File path will allow easier identification of problem files.
parent e02ae930
......@@ -124,7 +124,7 @@ void Scheduler::queueArchiveWithGivenId(const uint64_t archiveFileId, const std:
using utils::midEllipsis;
if (!request.fileSize)
throw cta::exception::Exception("Rejecting archive request for zero-length file.");
throw cta::exception::UserError(std::string("Rejecting archive request for zero-length file: ")+request.diskFileInfo.path);
const auto queueCriteria = m_catalogue.getArchiveFileQueueCriteria(instanceName, request.storageClass,
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