Commit f43ee91e authored by Johannes Pfeifer 's avatar Johannes Pfeifer
Browse files

Filter out "Dot indexing is not supported for variables of this type." error...

Filter out "Dot indexing is not supported for variables of this type." error if variable conflicts with namespace
parent 6fe97182
......@@ -280,8 +280,13 @@ clear(['+' fname '/driver'])
try
evalin('base',[fname '.driver']) ;
catch ME
diary off
rethrow(ME)
W = evalin('base','whos');
diary off
if ismember(fname,[W(:).name])
error('Your base workspace already contains a variable with the same name as the mod-file.\nYou need to delete it or rename the mod-file.')
else
rethrow(ME)
end
end
diary off
......
Markdown is supported
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