diff --git a/src/robotjs.cc b/src/robotjs.cc index 5c6e67c4..a862c498 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -517,7 +517,7 @@ NAN_METHOD(keyToggle) } else { - return Nan::ThrowError("Invalid mouse button state specified."); + return Nan::ThrowError("Invalid key state specified."); } }