Skip to content

Commit

Permalink
* Add an error message in case of incomplete model
Browse files Browse the repository at this point in the history
        For issue #10
  • Loading branch information
yoogx committed Mar 21, 2013
1 parent e243cd0 commit 4a980ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backends/ocarina-backends-pn-components.adb
Expand Up @@ -1261,6 +1261,11 @@ package body Ocarina.Backends.PN.Components is
(PN_Subcomponents
(PN_Box (PN_Generated)));

if No (Thread_Iter) then
Display_Error ("Petri Net backend : "
& "incomplete AADL model", True);
end if;

declare
Init_Node : constant Node_Id
:= OPN.First_Node (Internal_Transitions (Thread_Iter));
Expand Down

0 comments on commit 4a980ab

Please sign in to comment.