Edoardo Luppi
05/28/2025, 12:10 PMKSLogger.error
while returning an empty list, or should I prefer a "never error out" approach?trevjones
05/28/2025, 3:14 PMKSPLogger.error
and make sure you provide it with the symbol: KSNode
it was looking at when it failed so the info reported back to the user points it to where the issue spawns from.
At least that is how I always do itEdoardo Luppi
05/28/2025, 3:16 PMif (...) {
logger.error("...", symbol)
return emptyList()
}
which is not a big issue, it's just... not the best code.trevjones
05/28/2025, 3:17 PMtrevjones
05/28/2025, 3:18 PM