mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Add missing error causes
This commit is contained in:
@@ -32,7 +32,7 @@ export class N3PatchBodyParser extends BodyParser {
|
||||
try {
|
||||
store = new Store(parser.parse(n3));
|
||||
} catch (error: unknown) {
|
||||
throw new BadRequestHttpError(`Invalid N3: ${createErrorMessage(error)}`);
|
||||
throw new BadRequestHttpError(`Invalid N3: ${createErrorMessage(error)}`, { cause: error });
|
||||
}
|
||||
|
||||
// Solid, §5.3.1: "A patch resource MUST contain a triple ?patch rdf:type solid:InsertDeletePatch."
|
||||
|
||||
Reference in New Issue
Block a user