Skip to content

Commit

Permalink
log class name in FluxMapSignal if mapper returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Alammar authored and Ismail Alammar committed Mar 29, 2022
1 parent 39ba753 commit a5510cc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void onNext(T t) {

try {
v = Objects.requireNonNull(mapperNext.apply(t),
"The mapper returned a null value.");
"The mapper [" + mapperNext.getClass().getName() + "] returned a null value.");
}
catch (Throwable e) {
done = true;
Expand Down Expand Up @@ -172,7 +172,7 @@ public void onError(Throwable t) {

try {
v = Objects.requireNonNull(mapperError.apply(t),
"The mapper returned a null value.");
"The mapper [" + mapperError.getClass().getName() + "] returned a null value.");
}
catch (Throwable e) {
done = true;
Expand Down Expand Up @@ -204,7 +204,7 @@ public void onComplete() {

try {
v = Objects.requireNonNull(mapperComplete.get(),
"The mapper returned a null value.");
"The mapper [" + mapperComplete.getClass().getName() + "] returned a null value.");
}
catch (Throwable e) {
done = true;
Expand Down

0 comments on commit a5510cc

Please sign in to comment.