summaryrefslogtreecommitdiff
path: root/wrapper
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-12-05 01:21:03 -0500
committera1xd <[email protected]>2020-12-05 01:21:03 -0500
commit2c7c24ee1513616dc6260849bf97340d8484b6b4 (patch)
tree2210c90268748f685297313e0541862bf6894aa0 /wrapper
parentadd changes from review (diff)
downloadrawaccel-2c7c24ee1513616dc6260849bf97340d8484b6b4.tar.xz
rawaccel-2c7c24ee1513616dc6260849bf97340d8484b6b4.zip
add more changes from review
improve version error messages revert poll time changes add range validation after text parse
Diffstat (limited to 'wrapper')
-rw-r--r--wrapper/wrapper.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/wrapper/wrapper.cpp b/wrapper/wrapper.cpp
index c59dc00..fcbf2e8 100644
--- a/wrapper/wrapper.cpp
+++ b/wrapper/wrapper.cpp
@@ -355,16 +355,20 @@ public ref struct VersionHelper
}
catch (DriverIOException^) {
// Assume version ioctl is unimplemented (driver version < v1.3.0)
- throw gcnew VersionException("driver version is out of date, run installer.exe to reinstall");
+ throw gcnew VersionException("driver version is out of date\n\nrun installer.exe to reinstall");
}
Version^ drv_ver_managed = convert(drv_ver);
if (drv_ver_managed < convert(min_driver_version)) {
- throw gcnew VersionException("driver version is out of date, run installer.exe to reinstall");
+ throw gcnew VersionException(
+ String::Format("driver version is out of date (v{0})\n\nrun installer.exe to reinstall",
+ drv_ver_managed));
}
else if (drv_ver_managed > wrapperActual) {
- throw gcnew VersionException("newer driver version is installed");
+ throw gcnew VersionException(
+ String::Format("newer driver version is installed (v{0})",
+ drv_ver_managed));
}
else {
return drv_ver_managed;