Skip to content

Commit

Permalink
Unify error names
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Jul 6, 2021
1 parent b4665b2 commit 27e6eac
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crud/borders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local schema = require('crud.common.schema')
local has_keydef, Keydef = pcall(require, 'crud.compare.keydef')
local select_comparators = require('crud.compare.comparators')

local BorderError = errors.new_class('Border', {capture_stack = false})
local BorderError = errors.new_class('BorderError', {capture_stack = false})

local borders = {}

Expand Down
2 changes: 1 addition & 1 deletion crud/common/call.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local dev_checks = require('crud.common.dev_checks')
local utils = require('crud.common.utils')
local fiber_clock = require('fiber').clock

local CallError = errors.new_class('Call')
local CallError = errors.new_class('CallError')
local NotInitializedError = errors.new_class('NotInitialized')

local call = {}
Expand Down
2 changes: 1 addition & 1 deletion crud/delete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local sharding = require('crud.common.sharding')
local dev_checks = require('crud.common.dev_checks')
local schema = require('crud.common.schema')

local DeleteError = errors.new_class('Delete', {capture_stack = false})
local DeleteError = errors.new_class('DeleteError', {capture_stack = false})

local delete = {}

Expand Down
2 changes: 1 addition & 1 deletion crud/get.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local sharding = require('crud.common.sharding')
local dev_checks = require('crud.common.dev_checks')
local schema = require('crud.common.schema')

local GetError = errors.new_class('Get', {capture_stack = false})
local GetError = errors.new_class('GetError', {capture_stack = false})

local get = {}

Expand Down
2 changes: 1 addition & 1 deletion crud/insert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local sharding = require('crud.common.sharding')
local dev_checks = require('crud.common.dev_checks')
local schema = require('crud.common.schema')

local InsertError = errors.new_class('Insert', {capture_stack = false})
local InsertError = errors.new_class('InsertError', {capture_stack = false})

local insert = {}

Expand Down
2 changes: 1 addition & 1 deletion crud/replace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local sharding = require('crud.common.sharding')
local dev_checks = require('crud.common.dev_checks')
local schema = require('crud.common.schema')

local ReplaceError = errors.new_class('Replace', { capture_stack = false })
local ReplaceError = errors.new_class('ReplaceError', { capture_stack = false })

local replace = {}

Expand Down
2 changes: 1 addition & 1 deletion crud/truncate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local vshard = require('vshard')
local dev_checks = require('crud.common.dev_checks')
local call = require('crud.common.call')

local TruncateError = errors.new_class('Truncate', {capture_stack = false})
local TruncateError = errors.new_class('TruncateError', {capture_stack = false})

local truncate = {}

Expand Down
2 changes: 1 addition & 1 deletion crud/update.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local sharding = require('crud.common.sharding')
local dev_checks = require('crud.common.dev_checks')
local schema = require('crud.common.schema')

local UpdateError = errors.new_class('Update', {capture_stack = false})
local UpdateError = errors.new_class('UpdateError', {capture_stack = false})

local update = {}

Expand Down

0 comments on commit 27e6eac

Please sign in to comment.