Skip to content

Commit 7545fe2

Browse files
committed
no excetions on boot
1 parent 1759832 commit 7545fe2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/creature/LimbOption.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ public void build(CaDoodleFile f) throws IOException {
136136
add.setBuilderName("tmp");
137137
add.getRobots().put("tmp", value);
138138
List<CSG> so = add.process(new ArrayList<>());
139+
if(so.size()==0)
140+
throw new RuntimeException("Add limb produced no parts!");
139141
add.getRobots().remove("tmp");
140142
for (CSG c : so) {
141143
for (String s : c.getParameters(f.getCsgDBinstance())) {

src/main/java/com/neuronrobotics/bowlerstudio/creature/MobileBaseCadManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private static class IMobileBaseUIlocal implements IMobileBaseUI {
474474

475475
@Override
476476
public void highlightException(File fileEngineRunByName, Throwable ex) {
477-
com.neuronrobotics.sdk.common.Log.error(new Exception("Caught here:"));
477+
//com.neuronrobotics.sdk.common.Log.error(new Exception("Caught here:"));
478478
com.neuronrobotics.sdk.common.Log.error(ex);
479479
;
480480
}

0 commit comments

Comments
 (0)