aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay/API/Hubs/RelayHub.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Relay/API/Hubs/RelayHub.cs')
-rw-r--r--src/slskd/Relay/API/Hubs/RelayHub.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Relay/API/Hubs/RelayHub.cs b/src/slskd/Relay/API/Hubs/RelayHub.cs
index e839cd1a..4e044bdb 100644
--- a/src/slskd/Relay/API/Hubs/RelayHub.cs
+++ b/src/slskd/Relay/API/Hubs/RelayHub.cs
@@ -223,9 +223,9 @@ namespace slskd.Relay
/// Executed by the agent to notify the controller that the agent was unable to upload the file requested by a call to <see cref="IRelayHub.RequestFileUpload"/>.
/// </summary>
/// <param name="id">The unique identifier of the request.</param>
- /// <param name="exception">The Exception that caused the failure.</param>
+ /// <param name="message">A message describing the failure.</param>
/// <exception cref="UnauthorizedAccessException">Thrown when the agent is not fully authenticated.</exception>
- public void NotifyFileUploadFailed(Guid id, Exception exception)
+ public void NotifyFileUploadFailed(Guid id, string message)
{
if (!Relay.TryGetAgentRegistration(Context.ConnectionId, out var record))
{
@@ -233,9 +233,9 @@ namespace slskd.Relay
throw new UnauthorizedAccessException();
}
- Log.Warning("Agent {Agent} (connection {ConnectionId}) from {IP} reported upload failure for {Id}: {Message}", record.Agent, Context.ConnectionId, GetRemoteIPAddress(), id, exception.Message);
+ Log.Warning("Agent {Agent} (connection {ConnectionId}) from {IP} reported upload failure for {Id}: {Message}", record.Agent.Name, Context.ConnectionId, GetRemoteIPAddress(), id, message);
- Relay.NotifyFileStreamException(record.Agent.Name, id, exception);
+ Relay.NotifyFileStreamException(record.Agent.Name, id, new RelayException(message));
}
/// <summary>