Skip to content

Commit

Permalink
Extend error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Sep 27, 2024
1 parent a1caa74 commit 216d750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paperoption.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ final function test_exists(PaperInfo $prow, $use_script_expression = false) {
} else if ($this->_exists_state !== 0) {
return $this->_exists_state > 0;
} else if (++$this->_recursion > 5) {
throw new ErrorException("Recursion in {$this->name}::test_exists");
throw new ErrorException("Recursion in {$this->name}::test_exists [{$this->exists_if}]");
} else {
if ($use_script_expression) {
$x = !!($this->exists_script_expression($prow) ?? true);
Expand Down

0 comments on commit 216d750

Please sign in to comment.