aboutsummaryrefslogtreecommitdiff
path: root/sourcehut-builds/error_utils.luau
blob: 2969a545d0b74dab2b239aef1ee0672a85e08ecc (plain)
1
2
3
4
5
6
7
8
local K = require("./constants.luau")

return {
  isUnauthorized = function(error): boolean
    return type(error.extensions) == "table"
      and error.extensions.code == K.sourcehut.errors.unauthorized
  end
}