💡 Improved error message in path.shiftAlong
This commit is contained in:
parent
1c7ff10e44
commit
9f2eda43e9
1 changed files with 3 additions and 1 deletions
|
@ -347,7 +347,9 @@ Path.prototype.shiftAlong = function(distance) {
|
||||||
}
|
}
|
||||||
current = op.to;
|
current = op.to;
|
||||||
}
|
}
|
||||||
throw new Error("Ran out of path to shift along");
|
throw new Error(
|
||||||
|
`Error in Path.shiftAlong(): Ran out of path to shift along. Distance requested was ${distance}, path length is${this.length()}.`
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Returns a point that lies at fraction along this */
|
/** Returns a point that lies at fraction along this */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue