Nextcloud: Netzfehler mit Ursache melden (0.44.4)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-11-04 21:26:50 +00:00
parent 7e18b7f4de
commit c68fadbc60
6 changed files with 42 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
import type { Client, Pool } from "./db.js";
import { transaktion } from "./db.js";
import type { NextcloudZugang } from "./nextcloud.js";
import { type NextcloudZugang, abrufMitUrsache } from "./nextcloud.js";
import { FELDER, type KontaktFelder, felderAus, fingerabdruck, karteMit, kartenAus, nummer, revVon, uidVon } from "../domain/vcard.js";
export interface Adressbuch { href: string; name: string }
@@ -27,7 +27,7 @@ export class CardDav {
}
private anfrage(methode: string, href: string, kopf: Record<string, string> = {}, body?: string): Promise<Response> {
return this.abruf(this.origin + href, {
return abrufMitUrsache(this.abruf, this.origin + href, {
method: methode,
headers: { authorization: `Basic ${btoa(`${this.z.benutzer}:${this.z.passwort}`)}`, ...kopf },
body,