Add parse error
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2023-12-11 11:19:19 +01:00
parent f1b62d83c4
commit f6c49bf626
5 changed files with 33 additions and 21 deletions

View File

@ -67,7 +67,13 @@ struct Analytics: ParsableCommand {
print(error.description)
Analytics.exit(withError: error)
}
guard TrackerType.hasValidTarget(in: options.target) else {
let error = AnalyticsError.noValidTracker(options.target)
print(error.description)
Analytics.exit(withError: error)
}
// Check if needed to regenerate
guard GeneratorChecker.shouldGenerate(force: options.forceGeneration,
inputFilePath: options.inputFile,
@ -79,12 +85,3 @@ struct Analytics: ParsableCommand {
return true
}
}
// MARK: - Requirements
private func checkRequirements() -> Bool {
// Check les requirements et gestion des erreurs
// Il faut que toutes les erreurs générées par Analytics soit des AnalyticsError
true
}
}