Page MenuHomePhabricator

D14401.id34791.diff
No OneTemporary

D14401.id34791.diff

diff --git a/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php b/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php
--- a/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php
+++ b/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php
@@ -248,5 +248,19 @@
return $body;
}
+ protected function didCatchDuplicateKeyException(
+ PhabricatorLiskDAO $object,
+ array $xactions,
+ Exception $ex) {
+
+ $errors = array();
+ $errors[] = new PhabricatorApplicationTransactionValidationError(
+ PhabricatorPhurlURLTransaction::TYPE_ALIAS,
+ pht('Duplicate'),
+ pht('This alias is already in use.'),
+ null);
+
+ throw new PhabricatorApplicationTransactionValidationException($errors);
+ }
}

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 1, 4:20 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8536151
Default Alt Text
D14401.id34791.diff (767 B)

Event Timeline