Log in

View Full Version : Report Error on newline


Arhowk
12-04-2016, 21:02
If I have this code

wpilib.DriverStation.reportError("error1", false)
wpilib.DriverStation.reportError("error2", false)

It shows up as

error1error2

Jow do i get it to show up as
error1
error2

I tried things along the lines of \n, \r\n but it still was no help

virtuald
12-04-2016, 23:07
Hm, looks like it's just a passthrough (https://github.com/robotpy/robotpy-wpilib/blob/master/wpilib/wpilib/driverstation.py#L517)? Might try a sample java program and see what happens?

Christopher149
12-04-2016, 23:24
What if you try?


wpilib.DriverStation.reportError("error1\n", false)
wpilib.DriverStation.reportError("error2\n", false)