mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
feat: add error
This commit is contained in:
parent
c2722c2626
commit
1eeac84189
@ -1,6 +1,10 @@
|
||||
const CustomError = require('custom-error-instance')
|
||||
|
||||
module.exports = {
|
||||
AssetCreateFolderForbidden: CustomError('AssetCreateFolderForbidden', {
|
||||
message: 'You are not authorized to create this folder.',
|
||||
code: 2010
|
||||
}),
|
||||
AssetDeleteForbidden: CustomError('AssetDeleteForbidden', {
|
||||
message: 'You are not authorized to delete this asset.',
|
||||
code: 2003
|
||||
|
Loading…
Reference in New Issue
Block a user