Skip to content

Commit 3441270

Browse files
committed
Fix invalid message when AnnotationLayer is used without page
1 parent 8ba3c1d commit 3441270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Page/AnnotationLayer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class AnnotationLayer extends Component {
7070
const { page } = context;
7171

7272
if (!page) {
73-
throw new Error('Attempted to load page text content, but no page was specified.');
73+
throw new Error('Attempted to load page annotations, but no page was specified.');
7474
}
7575

7676
this.runningTask = makeCancellable(page.getAnnotations());

0 commit comments

Comments
 (0)