Skip to content

Commit 41a60c0

Browse files
authored
Merge pull request #79 from mkantor/fix-some-error-messages
Fix a few error messages in `get` helper.
2 parents d1635ee + 9253856 commit 41a60c0

File tree

1 file changed

+2
-2
lines changed
  • src/content/handlebars_helpers

1 file changed

+2
-2
lines changed

src/content/handlebars_helpers/get.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ where
145145
handlebars::RenderError::new(format!(
146146
"The `get` helper call failed because the query parameters could not be found \
147147
in the handlebars context. The context JSON must contain a property at `{}.{}` \
148-
whose value is a valid media type essence string. The current context is `{}`.",
148+
whose value is a map. The current context is `{}`.",
149149
REQUEST_DATA_PROPERTY_NAME,
150150
QUERY_PARAMETERS_PROPERTY_NAME,
151151
handlebars_context.data(),
@@ -170,7 +170,7 @@ where
170170
handlebars::RenderError::new(format!(
171171
"The `get` helper call failed because the request headers could not be found \
172172
in the handlebars context. The context JSON must contain a property at `{}.{}` \
173-
whose value is a valid media type essence string. The current context is `{}`.",
173+
whose value is a map. The current context is `{}`.",
174174
REQUEST_DATA_PROPERTY_NAME,
175175
REQUEST_HEADERS_PROPERTY_NAME,
176176
handlebars_context.data(),

0 commit comments

Comments
 (0)