Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ public static long byteStringAs(String str, ByteUnit unit) {
}

} catch (NumberFormatException e) {
String timeError = "Size must be specified as bytes (b), " +
String byteError = "Size must be specified as bytes (b), " +
"kibibytes (k), mebibytes (m), gibibytes (g), tebibytes (t), or pebibytes(p). " +
"E.g. 50b, 100k, or 250m.";

throw new NumberFormatException(timeError + "\n" + e.getMessage());
throw new NumberFormatException(byteError + "\n" + e.getMessage());
}
}

Expand Down