Skip to content

Commit

Permalink
fix PathPlannerAuto always running Commands.none (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 authored Oct 6, 2024
1 parent 720c43e commit 66d2814
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ public PathPlannerAuto(String autoName) {
initFromJson(json);
} catch (FileNotFoundException e) {
DriverStation.reportError(e.getMessage(), e.getStackTrace());
autoCommand = Commands.none();
} catch (IOException e) {
DriverStation.reportError(
"Failed to read file required by auto: " + autoName, e.getStackTrace());
autoCommand = Commands.none();
} catch (ParseException e) {
DriverStation.reportError(
"Failed to parse JSON in file required by auto: " + autoName, e.getStackTrace());
} finally {
autoCommand = Commands.none();
}

Expand Down

0 comments on commit 66d2814

Please sign in to comment.