Skip to content
Snippets Groups Projects
Commit e02a12c8 authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[msa-refactoring][classes] Error message formatting

parent c5756bad
Branches
No related tags found
1 merge request!2Final data structure
......@@ -70,9 +70,9 @@ classdef Component < Config
filePath = obj.mission.configPath;
if ~isfile(fullfile(filePath, fileName))
error(strcat("File not found inside the config folder: ", fileName, ...
['\n Check that the correct mission is set in your component' ...
'and the config file exists']));
error(['File not found inside the config folder: %s\n' ...
'Check that the correct mission is set in your component ' ...
'and the config file exists'], fileName);
end
variables = [who(); "variables"];
......
......@@ -31,19 +31,10 @@ classdef Rocket < Bay
mission Mission = Mission()
end
obj.mission = mission;
obj.nose.setMission(mission);
obj.payload.setMission(mission);
obj.recovery.setMission(mission);
obj.electronics.setMission(mission);
obj.airbrakes.setMission(mission);
obj.motor.setMission(mission);
obj.boat.setMission(mission);
obj.fins.setMission(mission);
obj.pitot.setMission(mission);
%% Loading data
if nargin == 0, return; end
vars = obj.getConfigVariables();
vars = obj.getConfigVariables(); % Load config once and apply to other bays
obj.nose = Nose(mission, vars);
obj.payload = Payload(mission, vars);
obj.recovery = Recovery(mission, vars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment