From 08bf5eed1d57de17847dc844cefe9d6dea9f557e Mon Sep 17 00:00:00 2001 From: tommyskeff Date: Tue, 7 Jan 2025 08:23:59 +0000 Subject: [PATCH] change timeout unit format to lowercase --- .../main/java/dev/tommyjs/futur/promise/AbstractPromise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/futur-api/src/main/java/dev/tommyjs/futur/promise/AbstractPromise.java b/futur-api/src/main/java/dev/tommyjs/futur/promise/AbstractPromise.java index 845069f..f451c7d 100644 --- a/futur-api/src/main/java/dev/tommyjs/futur/promise/AbstractPromise.java +++ b/futur-api/src/main/java/dev/tommyjs/futur/promise/AbstractPromise.java @@ -454,13 +454,13 @@ public abstract class AbstractPromise implements CompletablePromise timeout(long time, @NotNull TimeUnit unit) { - Exception e = new CancellationException("Promise timed out after " + time + " " + unit); + Exception e = new CancellationException("Promise timed out after " + time + " " + unit.toString().toLowerCase()); return completeExceptionallyDelayed(e, time, unit); } @Override public @NotNull Promise maxWaitTime(long time, @NotNull TimeUnit unit) { - Exception e = new TimeoutException("Promise stopped waiting after " + time + " " + unit); + Exception e = new TimeoutException("Promise stopped waiting after " + time + " " + unit.toString().toLowerCase()); return completeExceptionallyDelayed(e, time, unit); }