Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15367791
D14401.id34790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
767 B
Referenced Files
None
Subscribers
None
D14401.id34790.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 9:04 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7222792
Default Alt Text
D14401.id34790.diff (767 B)
Attached To
Mode
D14401: Check that Phurl alias is unique
Attached
Detach File
Event Timeline
Log In to Comment