Skip to content

Commit

Permalink
fix: invalid assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Aug 25, 2024
1 parent 732bfb1 commit 7b9a0d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DisCatSharp/Exceptions/NotIndexedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public sealed class NotIndexedException : Exception
public int? Code { get; internal set; } = null;

/// <summary>
/// Gets the message.
/// Gets the json message.
/// </summary>
public string? Message { get; internal set; } = null;
public string? JsonMessage { get; internal set; } = null;

/// <summary>
/// Gets the indexed documents count.
Expand Down Expand Up @@ -53,7 +53,7 @@ internal NotIndexedException(RestResponse response)
this.Code = (int)j["code"]!;

if (j["message"] is not null)
this.Message = j["message"]!.ToString();
this.JsonMessage = j["message"]!.ToString();

if (j["documents_indexed"] is not null)
this.DocumentsIndexed = (long)j["documents_indexed"]!;
Expand Down

0 comments on commit 7b9a0d3

Please sign in to comment.