Add parse error
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user