Skip to content

Commit

Permalink
[ACLI] Better error message when model not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillipus committed Aug 30, 2024
1 parent 331592e commit 3109aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void run(CommandLine commandLine) throws Exception {
IArchimateModel model = IEditorModelManager.INSTANCE.load(file);

if(model == null) {
throw new IOException(Messages.LoadModelFromFileProvider_3);
throw new IOException(NLS.bind(Messages.LoadModelFromFileProvider_3, filePath));
}

CommandLineState.setModel(model);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CreateEmptyModelProvider_7=Created empty model
LoadModelFromFileProvider_0=[Core]
LoadModelFromFileProvider_1=*.archimate file
LoadModelFromFileProvider_2=Load a *.archimate model from file and set to the current model.
LoadModelFromFileProvider_3=Could not load model
LoadModelFromFileProvider_3=Could not load model: {0}
LoadModelFromFileProvider_4=Loaded model: ''{0}''
SaveModelProvider_0=[Core]
SaveModelProvider_1=*.archimate file
Expand Down

0 comments on commit 3109aca

Please sign in to comment.