feat: add error

pull/5221/head
Lucas Aymon 2 years ago committed by GitHub
parent c2722c2626
commit 1eeac84189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save