Skip to content

Commit

Permalink
give more detailed error when GOcontroll-Simulink is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
SpieringsAE committed Jul 24, 2024
1 parent b4e8fd3 commit 6a9e38c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blockset/utility_functions/GOcontrollSimulinkStart.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
if ~matlab.addons.isAddonEnabled('GOcontroll-Simulink')
matlab.addons.enableAddon('GOcontroll-Simulink');
try
if ~matlab.addons.isAddonEnabled('GOcontroll-Simulink')
matlab.addons.enableAddon('GOcontroll-Simulink');
end
catch
error("The GOcontroll-Simulink toolbox must be installed to properly load this project, please install it first");
end

movefile('+GOcontroll_Simulink_2023b_dev', 'temp');
Expand Down

0 comments on commit 6a9e38c

Please sign in to comment.