Lucas Aymon
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
server/helpers/error.js
|
|
@ -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 |
|
|
|