Fixed failing samples
Updated uuid/webpack packages Added froze on objects publicly exposed Removed remaining while loops for actions/events processing
This commit is contained in:
@ -7,11 +7,13 @@ function StreamDeletedError(streamOrTransactionId) {
|
||||
if (typeof streamOrTransactionId === 'string') {
|
||||
this.message = util.format("Event stream '%s' is deleted.", streamOrTransactionId);
|
||||
this.stream = streamOrTransactionId;
|
||||
Object.freeze(this);
|
||||
return;
|
||||
}
|
||||
if (Long.isLong(streamOrTransactionId)) {
|
||||
this.message = util.format("Stream is deleted for transaction %s.", streamOrTransactionId);
|
||||
this.transactionId = streamOrTransactionId;
|
||||
Object.freeze(this);
|
||||
return;
|
||||
}
|
||||
throw new TypeError("second argument must be a stream name or transaction Id.");
|
||||
|
Reference in New Issue
Block a user