Make OpenDirectory error for empty path match error in DirExists.

This commit is contained in:
Nicholas Hastings 2015-03-10 18:58:00 -07:00
parent cc3b86ea80
commit 28870d2ae5

View File

@ -309,7 +309,7 @@ static cell_t sm_OpenDirectory(IPluginContext *pContext, const cell_t *params)
if (!path[0]) if (!path[0])
{ {
return pContext->ThrowNativeError("Invalid file path"); return pContext->ThrowNativeError("Invalid path. An empty path string is not valid, use \".\" to refer to the current working directory.");
} }
Handle_t handle = 0; Handle_t handle = 0;