Skip to content

Commit

Permalink
fix: string literals with format args not in format! (#12354)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits authored Dec 28, 2024
1 parent a5a7cff commit 19c91df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions helix-term/src/commands/dap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,15 +518,16 @@ pub fn dap_variables(cx: &mut Context) {
Some(thread_frame) => thread_frame,
None => {
cx.editor
.set_error("Failed to get stack frame for thread: {thread_id}");
.set_error(format!("Failed to get stack frame for thread: {thread_id}"));
return;
}
};
let stack_frame = match thread_frame.get(frame) {
Some(stack_frame) => stack_frame,
None => {
cx.editor
.set_error("Failed to get stack frame for thread {thread_id} and frame {frame}.");
cx.editor.set_error(format!(
"Failed to get stack frame for thread {thread_id} and frame {frame}."
));
return;
}
};
Expand Down

0 comments on commit 19c91df

Please sign in to comment.