Skip to content

Commit

Permalink
chore(tiny-construtor): add object to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Sep 11, 2024
1 parent 7f60518 commit c0809ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/lib/tiny/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function (token) {
const { retorno } = response.data
// console.log('>> Debug Retorno => ', retorno, retorno.registros, ' <<')
if (retorno.status === 'Erro') {
const err = new Error('Tiny error response')
const err = new Error(`Tiny error response ${JSON.stringify(retorno)}`)
const tinyErrorCode = parseInt(retorno.codigo_erro, 10)
if (tinyErrorCode <= 2) {
response.status = 401
Expand Down

0 comments on commit c0809ad

Please sign in to comment.