Skip to content

Commit 807b63e

Browse files
kewdewcandillon
andauthored
fix: incorrect error message on getPosTan (#3041)
Co-authored-by: William Candillon <[email protected]>
1 parent 77c2a4f commit 807b63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/skia/cpp/api/JsiSkContourMeasure.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class JsiSkContourMeasure
3434
SkPoint tangent;
3535
auto result = getObject()->getPosTan(dist, &position, &tangent);
3636
if (!result) {
37-
throw jsi::JSError(runtime, "getSegment() failed");
37+
throw jsi::JSError(runtime, "getPosTan() failed");
3838
}
3939
auto posTan = jsi::Array(runtime, 2);
4040
auto pos = jsi::Object::createFromHostObject(

0 commit comments

Comments
 (0)