Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Jun 2, 2021
1 parent 924ef35 commit dc55cd0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
Expand Down Expand Up @@ -116,7 +116,7 @@ private static class TubelineAssemblerAdapter implements TubelineAssembler {
@Override
public @NotNull Tube createServer(@NotNull ServerTubeAssemblerContext context) {
if (!(context instanceof ServerPipeAssemblerContext)) {
throw new IllegalArgumentException("{0} is not instance of ServerPipeAssemblerContext");
throw new IllegalArgumentException(context + " is not instance of ServerPipeAssemblerContext");
}
return PipeAdapter.adapt(assembler.createServer((ServerPipeAssemblerContext) context));
}
Expand Down

0 comments on commit dc55cd0

Please sign in to comment.