Skip to content

Commit

Permalink
#86 Config dir must contain either FMUs or a SystemStructure.ssd file
Browse files Browse the repository at this point in the history
  • Loading branch information
eidekrist committed Jun 11, 2019
1 parent 0c7bed5 commit 772e876
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cse/cse.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,14 @@ func validateConfigDir(fmuDir string) (bool, string) {
hasFMUs = true
}
}
if !hasFMUs {
return false, strCat(fmuDir, " does not contain any FMUs")
var hasSSD = false
for _, f := range files {
if f.Name() == "SystemStructure.ssd" {
hasSSD = true
}
}
if !hasFMUs && !hasSSD {
return false, strCat(fmuDir, " does not contain any FMUs nor a SystemStructure.ssd file")
}
return true, ""
}
Expand Down

0 comments on commit 772e876

Please sign in to comment.