1
0
Fork 0

fixed crash in datafileScan() and fixed wrong usage information

This commit is contained in:
Jan Steemann 2012-08-09 19:27:14 +02:00
parent 25c8555135
commit 2364c52ebd
1 changed files with 1 additions and 2 deletions

View File

@ -1994,8 +1994,7 @@ static v8::Handle<v8::Value> JS_DatafileScanVocbaseCol (v8::Arguments const& arg
}
if (argv.Length() != 1) {
TRI_ReleaseCollection(collection);
return scope.Close(v8::ThrowException(TRI_CreateErrorObject(TRI_ERROR_ILLEGAL_OPTION, "usage: datafileScan()")));
return scope.Close(v8::ThrowException(TRI_CreateErrorObject(TRI_ERROR_ILLEGAL_OPTION, "usage: datafileScan(<path>)")));
}
string path = TRI_ObjectToString(argv[0]);