Skip to content

Commit

Permalink
fix: Some InternalServerError IpcResponses return wrong status
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceisfun authored and jacqueskang committed Sep 12, 2020
1 parent 7f2ae50 commit 70cd592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JKang.IpcServiceFramework.Core/IpcResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public static IpcResponse InternalServerError()
=> new IpcResponse(IpcStatus.InternalServerError, null, null, null);

public static IpcResponse InternalServerError(string errorDetails)
=> new IpcResponse(IpcStatus.BadRequest, null, errorDetails, null);
=> new IpcResponse(IpcStatus.InternalServerError, null, errorDetails, null);

public static IpcResponse InternalServerError(string errorDetails, Exception innerException)
=> new IpcResponse(IpcStatus.BadRequest, null, errorDetails, innerException);
=> new IpcResponse(IpcStatus.InternalServerError, null, errorDetails, innerException);

public IpcResponse(
IpcStatus status,
Expand Down

0 comments on commit 70cd592

Please sign in to comment.