Skip to content

Commit 469851d

Browse files
samuelAndalonSamuel Vazquez
authored andcommitted
feat: public Error::from_value (#45)
Co-authored-by: Samuel Vazquez <samvazquez@expediagroup.com>
1 parent 213c972 commit 469851d

File tree

1 file changed

+1
-1
lines changed
  • apollo-router/src/graphql

1 file changed

+1
-1
lines changed

apollo-router/src/graphql/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl Error {
158158
}
159159
}
160160

161-
pub(crate) fn from_value(value: Value) -> Result<Error, MalformedResponseError> {
161+
pub fn from_value(value: Value) -> Result<Error, MalformedResponseError> {
162162
let mut object = ensure_object!(value).map_err(|error| MalformedResponseError {
163163
reason: format!("invalid error within `errors`: {error}"),
164164
})?;

0 commit comments

Comments
 (0)