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 authored and ljamt committed Jun 21, 2019
1 parent 0c7bed5 commit a0bf2ee
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 a0bf2ee

Please sign in to comment.