Skip to content

Commit

Permalink
fix: add fallback description to router:error-description
Browse files Browse the repository at this point in the history
If the error raised does neither have a description nor a value it will now return "No description provided."
  • Loading branch information
line-o committed Sep 22, 2024
1 parent a1da929 commit 9f7274a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/router.xql
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ declare %private function router:error-description ($description as xs:string?,
if ($line and $line > 0 and empty($value)) then
``[`{$description}` [at line `{$line}` column `{$column}` in module `{head(($module, 'unknown'))}`]]``
else
($description, $value)[1]
($description, $value, 'No description provided.')[1]
};

(:~
Expand Down

0 comments on commit 9f7274a

Please sign in to comment.