(error, maxBuffer)
| 48 | |
| 49 | // Error message when `maxBuffer` is hit |
| 50 | export const getMaxBufferMessage = (error, maxBuffer) => { |
| 51 | const {streamName, threshold, unit} = getMaxBufferInfo(error, maxBuffer); |
| 52 | return `Command's ${streamName} was larger than ${threshold} ${unit}`; |
| 53 | }; |
| 54 | |
| 55 | const getMaxBufferInfo = (error, maxBuffer) => { |
| 56 | if (error?.maxBufferInfo === undefined) { |
no test coverage detected