diff --git a/src/HotChocolate/Core/src/Abstractions/Error.cs b/src/HotChocolate/Core/src/Abstractions/Error.cs
index a42e81955c4..df15e64168b 100644
--- a/src/HotChocolate/Core/src/Abstractions/Error.cs
+++ b/src/HotChocolate/Core/src/Abstractions/Error.cs
@@ -111,28 +111,16 @@ public IError RemoveCode()
}
///
- public IError WithPath(Path? path)
- => path is null
- ? RemovePath()
- : new Error(Message, Code, path, Locations, Extensions, Exception);
+ public IError WithPath(Path path)
+ => new Error(Message, Code, path, Locations, Extensions, Exception);
///
- public IError WithPath(IReadOnlyList