Skip to content

Commit

Permalink
Better error handling for moveMouse.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Jan 8, 2016
1 parent dfa83f6 commit dd6e658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ NAN_METHOD(dragMouse)

NAN_METHOD(moveMouse)
{
if (info.Length() < 2)
if (info.Length() != 2)
{
return Nan::ThrowError("Invalid number of arguments.");
}
Expand Down

0 comments on commit dd6e658

Please sign in to comment.