Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bolt-connection/src/bolt/bolt-protocol-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export default class BoltProtocol {
return BOLT_PROTOCOL_V1
}

get currentFailure () {
return this._responseHandler.currentFailure
}

/**
* Get the packer.
* @return {Packer} the protocol's packer.
Expand Down
4 changes: 4 additions & 0 deletions bolt-connection/src/bolt/response-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export default class ResponseHandler {
}
}

get currentFailure () {
return this._currentFailure
}

/*
* Pop next pending observer form the list of observers and make it current observer.
* @protected
Expand Down
2 changes: 1 addition & 1 deletion bolt-connection/src/connection/connection-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default class ChannelConnection extends Connection {
*/
_handleFatalError (error) {
this._isBroken = true
this._error = this.handleAndTransformError(error, this._address)
this._error = this.handleAndTransformError(this._protocol.currentFailure || error, this._address)

if (this._log.isErrorEnabled()) {
this._log.error(
Expand Down
2 changes: 1 addition & 1 deletion testkit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && \
firefox \
&& rm -rf /var/lib/apt/lists/*

RUN npm install -g npm \
RUN npm install -g npm@7 \
&& /bin/bash -c 'hash -d npm'
RUN npm install -g gulp

Expand Down