Skip to content

Commit dd6e658

Browse files
committed
Better error handling for moveMouse.
1 parent dfa83f6 commit dd6e658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robotjs.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ NAN_METHOD(dragMouse)
8787

8888
NAN_METHOD(moveMouse)
8989
{
90-
if (info.Length() < 2)
90+
if (info.Length() != 2)
9191
{
9292
return Nan::ThrowError("Invalid number of arguments.");
9393
}

0 commit comments

Comments
 (0)