Skip to content

Commit

Permalink
Show criteria upon search timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Jun 12, 2024
1 parent 59a4d35 commit 1bbff5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Mailosaur/Operations/Messages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public class Messages {
return .success(res.messageListResult)
}

return .failure(MailosaurError.generic("No matching messages found in time. By default, only messages received in the last hour are checked (use receivedAfter to override this)."))
return .failure(MailosaurError.generic("No matching messages found in time. By default, only messages received in the last hour are checked (use receivedAfter to override this). The search criteria used for this query was [\(criteria)] which timed out after \((timeout ?? 0) * 10)ms"))
}

try? await Task.sleep(nanoseconds: UInt64(Double(delay) * Double(NSEC_PER_MSEC)))
Expand Down

0 comments on commit 1bbff5b

Please sign in to comment.