Skip to content

Commit 6eb8100

Browse files
committed
throw an exception when /var/lock does not exist.. otherwise too subtle
1 parent 612704c commit 6eb8100

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/libraries/serial/src/processing/serial/Serial.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ public Serial(PApplet parent, String iname, int irate,
143143
"sudo mkdir -p /var/lock\n" +
144144
"sudo chmod 777 /var/lock";
145145
System.err.println(MESSAGE);
146+
throw new RuntimeException("Additional installation required to " +
147+
"use serial, read the console below.");
146148
}
147149
}
148150

0 commit comments

Comments
 (0)