Skip to content

Commit

Permalink
i think i got it
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbisect committed Jun 5, 2024
1 parent 4db2157 commit 93a20a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ whether the expression produced a result without any errors.

This is a special function that is able to catch errors produced when evaluating
its argument. For most situations where you could use `can` it's better to use
[`try`](website/content/docs/templates/hcl_templates/functions/conversion/try.mdx) instead, because it allows for more concise definition of
[`try`](/website/content/docs/templates/hcl_templates/functions/conversion/try.mdx) instead, because it allows for more concise definition of
fallback values for failing expressions.

The `can` function can only catch and handle _dynamic_ errors resulting from
Expand All @@ -24,7 +24,7 @@ as a malformed resource reference.
variable validation rules. Although it can technically accept any sort of
expression and be used elsewhere in the configuration, we recommend against
using it in other contexts. For error handling elsewhere in the configuration,
prefer to use [`try`](website/content/docs/templates/hcl_templates/functions/conversion/try.mdx).
prefer to use [`try`](/website/content/docs/templates/hcl_templates/functions/conversion/try.mdx).

## Examples

Expand Down Expand Up @@ -53,5 +53,5 @@ A local value with the name "nonexist" has not been declared.

## Related Functions

- [`try`](/content/docs/templates/hcl_templates/functions/conversion/try.mdx), which tries evaluating a sequence of expressions and
- [`try`](/website/content/docs/templates/hcl_templates/functions/conversion/try.mdx), which tries evaluating a sequence of expressions and
returns the result of the first one that succeeds.

0 comments on commit 93a20a3

Please sign in to comment.