feat: add error

This commit is contained in:
Lucas Aymon 2022-04-25 20:13:57 +02:00 committed by GitHub
parent c2722c2626
commit 1eeac84189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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