Skip to content

Commit ebe81fd

Browse files
committed
chore: address some review comments
1 parent e17b8ee commit ebe81fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/labrinth/src/routes/internal/delphi.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ impl DelphiReport {
6363
format!("⚠️ Suspicious traces found at {}", self.url);
6464

6565
for (issue, trace) in &self.issues {
66-
for (path, code) in trace {
66+
for (class, code) in trace {
6767
write!(
6868
&mut message_header,
69-
"\n issue {issue} found at file {path}:\n```\n{code}\n```"
69+
"\n issue {issue} found at class `{class}`:\n```\n{code}\n```"
7070
)
7171
.ok();
7272
}
@@ -227,7 +227,7 @@ async fn issues(
227227
.map(|offset| offset.try_into())
228228
.transpose()
229229
.map_err(|err| {
230-
io::Error::other(format!("Invalid offset: {err}"))
230+
ApiError::InvalidInput(format!("Invalid offset: {err}"))
231231
})?,
232232
&**pool,
233233
)

0 commit comments

Comments
 (0)