Skip to content

Commit

Permalink
verifier: log error if one occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Jan 29, 2024
1 parent 8ef07cd commit 4678425
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/router_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const cors = require('cors');
const { required_nip98_auth, capture_raw_body, optional_nip98_auth } = require('./nip98_auth')
const { nip19 } = require('nostr-tools')
const { PURPLE_ONE_MONTH } = require('./invoicing')
const error = require("debug")("api:error")

function config_router(app) {
const router = app.router
Expand Down Expand Up @@ -205,7 +206,8 @@ function config_router(app) {
json_response(res, response.checkout_object)
}
} catch (e) {
invalid_request(res, e)
error("%s", e.toString())
invalid_request(res, e.toString())
}
})

Expand Down

0 comments on commit 4678425

Please sign in to comment.