Commit ba4b514b authored by Maximilian Schnabel's avatar Maximilian Schnabel
Browse files

Adjusted error message to include a possible path to resolving the issue

parent feb2dfb6
......@@ -132,7 +132,11 @@ classdef usbBrickIO < BrickIO
catch ME
if ~isempty(strfind(ME.identifier, 'CommError'))
% Throw a clean CommError to avoid confusion in upper layers
msg = 'Failed to open connection to Brick via USB.';
msg = ['Failed to open connection to Brick via USB. The most ' ...
'likely cause is another EV3 object that is already ' ...
'connected to the physical brick. Call ' ...
'"killAllConnections" using the EV3 object to disconnect' ...
' all other existing EV3 objects.'];
id = [ID(), ':', 'CommError'];
throw(MException(id, msg));
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment