MIP Driver - Error Handling

When a user adds a new hardware instance in the “Add Hardware” dialog (and the VMS triggers the driver connection test), is there any supported mechanism for a driver to return a custom error message that is shown directly in that dialog?

Because when throw a expection in Connect func, it just show Failed to detect or verify the hardware’s driver, credentials, or address.

So some infos about general correct error handling in a driver would be awesome.

Thanks

1 Like

No, a custom error message is not possible.

The error message is the same for all camera and camera drivers, MIP Driver framework based or developed by Milestone.

The only thing you can do beyond failing is to write to the log. In a regular user scenario we never expect a user to look into debug logs, so it might not help much.

Ok, thank you, that’s exactly the kind of thing that has always bothered me as a technician when adding devices (or even after they’ve been added). From my perspective, what’s missing is just a bit more UI-side detail about why the connection is failing.

You get an “error” message in the UI, but in the end it’s basically just hardcoded, right? And honestly, I think most Milestone Systems users are fairly technical and would absolutely understand clearer messages like “Unauthorized”, “Connection timeout”, “DNS not found”, etc.

But yeah, I totally get that this was a design decision made a long time ago, and at this point it’s difficult to change without breaking expectations, especially with how many drivers already exist.