Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Noric Couderc
JBrainy
Commits
624df419
Commit
624df419
authored
Nov 14, 2021
by
Noric Couderc
Browse files
Merge branch 'master' of git.cs.lth.se:noricc/jbrainy
Fixed error reporting
parents
beae7432
ec9e0e67
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/src/main/kotlin/se/lth/cs/util/Features.kt
View file @
624df419
...
...
@@ -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
())
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment