Make OpenDirectory error for empty path match error in DirExists.
This commit is contained in:
parent
cc3b86ea80
commit
28870d2ae5
@ -309,7 +309,7 @@ static cell_t sm_OpenDirectory(IPluginContext *pContext, const cell_t *params)
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user