added asset merging + url updates

This commit is contained in:
Wyatt Johnson
2017-06-09 13:23:16 -06:00
parent f2f5ddd131
commit f929059daf
4 changed files with 261 additions and 58 deletions
+9 -1
View File
@@ -168,6 +168,13 @@ const ErrCommentTooShort = new APIError('Comment was too short', {
status: 400
});
// ErrAssetURLAlreadyExists is returned when a rename operation is requested
// but an asset already exists with the new url.
const ErrAssetURLAlreadyExists = new APIError('Asset URL already exists, cannot rename', {
translation_key: 'ASSET_URL_ALREADY_EXISTS',
status: 409
});
module.exports = {
ExtendableError,
APIError,
@@ -191,5 +198,6 @@ module.exports = {
ErrInstallLock,
ErrLoginAttemptMaximumExceeded,
ErrEditWindowHasEnded,
ErrCommentTooShort
ErrCommentTooShort,
ErrAssetURLAlreadyExists
};