mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #1248] [MERGED] Add exception message to logging when mapping fails due to an exception. #1299
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/1248
Author: @JvE-iO
Created: 1/29/2025
Status: ✅ Merged
Merged: 1/30/2025
Merged by: @StefH
Base:
master← Head:patch-1📝 Commits (4)
eb7cf46Add exception message to logging when mapping fails due to an exception.eafc42bMerge branch 'WireMock-Net:master' into patch-14951ef3Revert "Add exception message to logging when mapping fails due to an exception."2e247ffFix loggers with improved exception logging.📊 Changes
3 files changed (+7 additions, -7 deletions)
View changed files
📝
examples/WireMock.Net.WebApplication.NET6/WireMockService.cs(+2 -2)📝
src/WireMock.Net.TUnit/TUnitWireMockLogger.cs(+2 -2)📝
src/WireMock.Net.xUnit/TestOutputHelperWireMockLogger.cs(+3 -3)📄 Description
I spent way too much time in the debugger trying to figure out why the mapping was not found.
It was found, but an exception occurred during the mapping, leading to a misleading message.
As an aside, the exception occurred because I called
.WithMapping()before I called.AddProtoDefinition()...🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.