diff --git a/sgx_jmp.rb b/sgx_jmp.rb index fc3407c5e73b63c2e2c8ff6866f1323c3e107675..80dce0e3bc0f2c6bc810482e4cac87f5b5e2a497 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -269,6 +269,8 @@ message( m.to = m.to.with(domain: customer.jid.domain) address["jid"] = customer.jid.to_s BLATHER << m + }.catch_only(CustomerRepo::NotFound) { |e| + BLATHER << iq.as_error("forbidden", :auth, e.message) }.catch { |e| panic(e, sentry_hub) } end