ffat_fs: don't throw exception in 'close()'

The 'close()' function is not supposed to throw any exceptions.

Fixes #304.
This commit is contained in:
Christian Prochaska 2012-07-27 12:27:36 +02:00 committed by Norman Feske
parent fa541b4545
commit c708a28eff

View File

@ -538,7 +538,8 @@ namespace File_system {
try { try {
node = _handle_registry.lookup(handle); node = _handle_registry.lookup(handle);
} catch(Invalid_handle) { } catch(Invalid_handle) {
throw Lookup_failed(); PERR("close() called with invalid handle");
return;
} }
PDBGV("name = %s", node->name()); PDBGV("name = %s", node->name());