Skip to content

Commit

Permalink
fix lang-client
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Dec 3, 2024
1 parent 8614c88 commit aa6d118
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engine/language_client_typescript/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ pub fn from_anyhow_error(err: anyhow::Error) -> napi::Error {
message,
raw_output: raw_response,
finish_reason,
} => throw_baml_client_finish_reason_error(prompt, raw_response, message, finish_reason),
} => throw_baml_client_finish_reason_error(
prompt,
raw_response,
message,
finish_reason.as_ref().map(|f| f.as_str()),
),
}
} else if let Some(er) = err.downcast_ref::<ScopeStack>() {
invalid_argument_error(&format!("{}", er))
Expand Down

0 comments on commit aa6d118

Please sign in to comment.