Skip to content

Commit bf33c48

Browse files
committed
output message of warning message for aggregate without entity
1 parent 4c21dff commit bf33c48

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

internal/domain/arch/entity/arch.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ func (arc *Arch) buildStrategicArchGraph() (*Diagram, error) {
6868
return nil, err
6969
}
7070
if a.Entity == nil {
71-
return nil, fmt.Errorf("aggregate %s has no entity", a.Name)
71+
fmt.Printf("warn: strategic aggregate %s has no entity", a.Name)
72+
continue
7273
}
7374

7475
if err := g.AddObjTo(a, g.Name(), arch.RelationTypeAggregationRoot); err != nil {
@@ -169,7 +170,8 @@ func (arc *Arch) buildTacticArchGraph() (*Diagram, error) {
169170
return nil, err
170171
}
171172
if a.Entity == nil {
172-
return nil, fmt.Errorf("aggregate %s has no entity", a.Name)
173+
fmt.Printf("warn: tactic aggregate %s has no entity", a.Name)
174+
continue
173175
}
174176
if err := dm.addAggregateToDiagram(g, ag, a); err != nil {
175177
return nil, err

internal/interfaces/cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func getBuildInfo() *buildInfo {
112112
var CurrentVersion = Version{
113113
Major: 0,
114114
Minor: 4,
115-
PatchLevel: 0,
115+
PatchLevel: 1,
116116
Suffix: "",
117117
}
118118

0 commit comments

Comments
 (0)