VFS server: throw Not_empty

Issue #1750
This commit is contained in:
Emery Hemingway 2015-10-30 16:44:33 +01:00 committed by Christian Helmuth
parent 1d92631ef0
commit 44cfc414ee
1 changed files with 3 additions and 2 deletions

View File

@ -80,8 +80,9 @@ namespace File_system {
{
typedef Directory_service::Unlink_result Result;
switch (r) {
case Result::UNLINK_ERR_NO_ENTRY: throw Lookup_failed();
case Result::UNLINK_ERR_NO_PERM: throw Permission_denied();
case Result::UNLINK_ERR_NO_ENTRY: throw Lookup_failed();
case Result::UNLINK_ERR_NO_PERM: throw Permission_denied();
case Result::UNLINK_ERR_NOT_EMPTY: throw Not_empty();
case Result::UNLINK_OK: break;
}
}