You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
448 B
JavaScript
16 lines
448 B
JavaScript
"use strict";
|
|
|
|
const createError = require("error-chain").create;
|
|
const defaultValue = require("default-value");
|
|
|
|
// FIXME: Update everything that uses end-of-stream-marker or aborted-marker to the new split-module API
|
|
module.exports = createError("Aborted", {
|
|
populate: (message) => {
|
|
return { message: defaultValue(message, "The stream was aborted") };
|
|
},
|
|
context: {
|
|
__ppstreams_isAbortedMarker: true,
|
|
__ppstreams_specVersion: 1
|
|
}
|
|
});
|