Skip to content

Commit

Permalink
feat: throw InvalidArgument instead of UnsupportedOperation for print… (
Browse files Browse the repository at this point in the history
#1280)

…ing an empty content area

Related, in sync with, and blocked on:
web-platform-tests/wpt#40872
  • Loading branch information
Thiago Perrotta authored Sep 12, 2023
1 parent 93fdf47 commit b32ea31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bidiMapper/domains/context/BrowsingContextImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ export class BrowsingContextImpl {
(error as Error).message ===
'invalid print parameters: content area is empty'
) {
throw new UnsupportedOperationException(error.message);
throw new InvalidArgumentException(error.message);
}
throw error;
}
Expand Down

0 comments on commit b32ea31

Please sign in to comment.