Skip to content

Commit

Permalink
Refactor error handling in getAuthenticatedUser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Prioq committed Nov 1, 2024
1 parent e6645bd commit eb22d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/getAuthenticatedUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ exports.func = async function (args) {
} else {
throw new Error('Failed to get authenticated user.')
}
return res.body
} catch (err) {
throw new Error('Failed to get authenticated user: ' + err.message)
}

return res.body
}

0 comments on commit eb22d4c

Please sign in to comment.