mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Improve Error message thrown when no arc can be drawn.
This commit is contained in:
parent
8454709559
commit
c2d425c916
1 changed files with 2 additions and 3 deletions
|
@ -1544,9 +1544,8 @@ var Path = this.Path = PathItem.extend({
|
|||
// Otherwise we bail out:
|
||||
if (!side)
|
||||
return this.lineTo(to);
|
||||
throw new Error(
|
||||
"Cannot put an arc through the given points: "
|
||||
+ Array.prototype.join.call(arguments));
|
||||
throw new Error("Cannot put an arc through the given points: "
|
||||
+ [from, through, to]);
|
||||
}
|
||||
var vector = from.subtract(center),
|
||||
radius = vector.getLength(),
|
||||
|
|
Loading…
Reference in a new issue