Skip to content

Commit

Permalink
Remove error Code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR00st3r committed Jan 5, 2023
1 parent f0274ff commit 81e1261
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions NetEvent/Server/Data/Events/EventError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
/// </summary>
public class EventError
{
/// <summary>
/// Gets or sets the code for this error.
/// </summary>
/// <value>
/// The code for this error.
/// </value>
public string? Code { get; set; }

/// <summary>
/// Gets or sets the description for this error.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion NetEvent/Server/Data/Events/EventResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override string ToString()
{
return Succeeded ?
"Succeeded" :
string.Format(CultureInfo.InvariantCulture, "{0} : {1}", "Failed", string.Join(",", Errors.Select(x => x.Code).ToList()));
string.Format(CultureInfo.InvariantCulture, "{0} : {1}", "Failed", string.Join(",", Errors.Select(x => x.Description).ToList()));
}
}
}

0 comments on commit 81e1261

Please sign in to comment.