Commit ec9e0e67 authored by Noric Couderc's avatar Noric Couderc
Browse files

Fix: Don't print error message every time!

We only print it if there WERE dropped features
parent a2619d25
......@@ -206,7 +206,9 @@ class FeatureSet(vararg features : Feature) : ArrayList<Feature>() {
fun checked() : FeatureSet {
val featuresChecked = this.partition { it.isSupported() }
System.err.println("[WARNING]: Some features have been dropped, they are not supported on this machine: ${featuresChecked.second}")
if (!featuresChecked.second.isEmpty()) {
System.err.println("[WARNING]: Some features have been dropped, they are not supported on this machine: ${featuresChecked.second}")
}
return FeatureSet(*featuresChecked.first.toTypedArray())
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment