1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/phriction
epriestley 09151b509e Raise a better error for trying to create an empty document in Phriction
Summary:
When you delete the content of a document in Phriction, we treat it as an attempt to delete the document.

In the case you're creating the document, we hit an exception trying to delete a document which doesn't exist yet.

Detect this case and raise a better error.

Test Plan: Tried to create an empty document, got a good error. Created a nonempty document. Edited a document to empty to delete it.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1920

Differential Revision: https://secure.phabricator.com/D3728
2012-10-17 15:13:03 -07:00
..
application Respect phriction.enabled in config 2012-10-17 09:12:08 -07:00
constants Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
controller Raise a better error for trying to create an empty document in Phriction 2012-10-17 15:13:03 -07:00
editor If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
storage Add 'viewer' to some Remarkup callsites 2012-09-05 11:40:48 -07:00