Skip to content

Commit

Permalink
fix(plc4j/spi): fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed May 3, 2023
1 parent 5b72eaf commit 4f4712f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ public Plc4xEmbeddedChannel getEmbeddedChannel(PlcConnection plcConnection) {
ChannelExposingConnection connection = (ChannelExposingConnection) plcConnection;
Channel channel = connection.getChannel();
if (!(channel instanceof Plc4xEmbeddedChannel)) {
throw new PlcRuntimeException("Expecting EmbeddedChannel. Actual "+ channel.getClass());
throw new PlcRuntimeException("Expecting Plc4xEmbeddedChannel. Actual "+ channel.getClass());
}
return (Plc4xEmbeddedChannel) channel;
}
Expand Down

0 comments on commit 4f4712f

Please sign in to comment.