fix: report a NUL-poisoned draft on move instead of 500ing

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-09-08 12:56:58 +02:00
co-authored by Claude Opus 5
parent e895cdd4db
commit c04942e341
6 changed files with 158 additions and 11 deletions
+2 -1
View File
@@ -2157,8 +2157,9 @@ async fn create_script_internal<'c>(
.await?;
if outcome.left_behind > 0 {
tracing::warn!(
"{} script draft(s) stranded at {p_path}: their owner already has a draft at {}",
"{} of {} script draft(s) stranded at {p_path}: their owner already has a draft at {}",
outcome.left_behind,
outcome.moved + outcome.left_behind,
&ns.path
);
}