Skip to content

Commit aac4853

Browse files
committed
Clear shouldn't always throw exceptions
1 parent 0252623 commit aac4853

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎koans/app/lib/koans.jar‎

27 Bytes
Binary file not shown.

‎koans/run.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
3-
mkdir -p "$DIR""/app/data"
4-
mkdir -p "$DIR""/app/bin"
53
exitOnError()
64
{
75
rc=$?

‎lib/koans-lib/src/com/sandwich/koan/cmdline/behavior/Clear.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public void run(String... values) throws Exception {
3030
ApplicationUtils.getPresenter().displayMessage(file.getAbsolutePath() + " does not exist. Skipping.");
3131
}
3232
}
33-
throw new RuntimeException("Unable to delete: "+unableToDelete+" see output for details.");
33+
if(!unableToDelete.isEmpty()){
34+
throw new RuntimeException("Unable to delete: "+unableToDelete+" see output for details.");
35+
}
3436
}
3537

3638
}

0 commit comments

Comments
 (0)