For #152: the error message is no longer in $resp->{cmd_return}; it's now a level deeper, so we need to dereference it to pass along the information to the user.
@@ -558,7 +558,8 @@ sub _request_new_session {
}
else {
my $error = 'Could not create new session';
- $error .= ": $resp->{cmd_return}" if defined $resp->{cmd_return};
+ $error .= ': ' . $resp->{cmd_return}->{message}
+ if exists $resp->{cmd_return}->{message};
croak $error;