Homec4science

Raise a better error for trying to create an empty document in Phriction

Authored by epriestley <git@epriestley.com> on Oct 18 2012, 00:13.

Description

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

Details

Committed
epriestley <git@epriestley.com>Oct 18 2012, 00:13
Pushed
aubortJan 31 2017, 17:16
Parents
rPH251446b9285b: Support simple table Remarkup in Phabricator
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH09151b509e1e: Raise a better error for trying to create an empty document in Phriction (authored by epriestley <git@epriestley.com>).Oct 18 2012, 00:13