mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Merge commit '346b60358dd8ec2ca228e6635bff9d7914b398b7'
This commit is contained in:
@@ -9,8 +9,15 @@ action:
|
||||
- methods/resource/Data
|
||||
returnType: resource.resourceError
|
||||
signatures: [RESOURCE.Err]
|
||||
expiryDate: 2026-01-16 # deprecated 2025-01-16
|
||||
---
|
||||
|
||||
{{% deprecated-in 0.141.0 %}}
|
||||
Use the `try` statement instead. See [example].
|
||||
|
||||
[example]: /functions/go-template/try/#example
|
||||
{{% /deprecated-in %}}
|
||||
|
||||
The `Err` method on a resource returned by the [`resources.GetRemote`] function returns an error message if the HTTP request fails, else nil. If you do not handle the error yourself, Hugo will fail the build.
|
||||
|
||||
[`resources.GetRemote`]: /functions/resources/getremote/
|
||||
|
Reference in New Issue
Block a user