Skip to content

Commit e925fa1

Browse files
bronsolobronsolo
authored andcommitted
catch wrapper directory change
1 parent 3c89673 commit e925fa1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plotly/plotly_setup_aux/plotlyupdate.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function plotlyupdate(varargin)
7272

7373
% find the location of all plotly/ directories
7474
dircount = 1;
75+
plotlyDirs = {};
7576
for d = 1:length(plotlyScriptDirs)
7677
%parse filepath string at the Plotly directory
7778
plotlyLoc = strfind(fileparts(plotlyScriptDirs{d}),fullfile('MATLAB-api-master','plotly'));
@@ -84,6 +85,10 @@ function plotlyupdate(varargin)
8485
dircount = dircount + 1;
8586
end
8687

88+
if isempty(plotlyDirs)
89+
error('It seems your plotly wrapper directory structure has changed. Update aborted.');
90+
end
91+
8792
%----update if necessary----%
8893
if strcmp(pvLocal,pvRemote)
8994
fprintf(['\nYour Plotly API MATLAB Library v.' pvRemote ' is already up to date! \n\n'])

0 commit comments

Comments
 (0)