Skip to content

Commit

Permalink
[HOTFIX] whoops
Browse files Browse the repository at this point in the history
Exception should be thrown inside else clause (when app name doesn't exist)
  • Loading branch information
bh2smith authored Dec 11, 2018
1 parent df32efe commit 7afd0be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/profiler/utils/SparkUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ public static String appName(final String s) {
return "SparkZKSNARKLarge";
} else if (s.equals("vmsm-sorted-g1")) {
return "SparkVMSMSortedG1";
} else {
String exception = String.format("APP parameter '%s' not listed for profiling", s);
throw new IllegalArgumentException(exception);
}
String exception = String.format("APP parameter '%s' not listed for profiling", s);
throw new IllegalArgumentException(exception);
}

public static Class[] zksparkClasses() {
Expand Down

0 comments on commit 7afd0be

Please sign in to comment.