diff --git a/release/sonicnote-sync-v1.1.6.zip b/release/sonicnote-sync-v1.1.6.zip new file mode 100644 index 0000000..160fb01 Binary files /dev/null and b/release/sonicnote-sync-v1.1.6.zip differ diff --git a/src/api.ts b/src/api.ts index 3cc78a7..4bb1e53 100644 --- a/src/api.ts +++ b/src/api.ts @@ -48,6 +48,7 @@ export class SonicNoteApiClient { if (e?.json) { return e.json as BackendResponse; } + console.error(`[SonicNote] 请求失败 ${method} ${path}:`, e?.message || e); throw new Error(e?.message || `请求失败: ${method} ${path}`); } } diff --git a/src/sync.ts b/src/sync.ts index aeab30e..ff06fbf 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -46,6 +46,7 @@ export class SyncService { } catch (e) { const msg = e instanceof Error ? e.message : '获取录音列表失败'; result.errorMessages.push(msg); + console.error('[SonicNote] 获取录音列表失败:', e); new Notice(`同步失败: ${msg}`); return result; } @@ -66,7 +67,9 @@ export class SyncService { } catch (e) { result.errors++; const msg = e instanceof Error ? e.message : '未知错误'; - result.errorMessages.push(`${recording.recordNickName || recording.recordName}: ${msg}`); + const name = recording.recordNickName || recording.recordName; + result.errorMessages.push(`${name}: ${msg}`); + console.error(`[SonicNote] 同步失败 — ${name} (${recording.audioId}):`, e); } }