diff --git a/net/aws/src/aws_transcriber/imp.rs b/net/aws/src/aws_transcriber/imp.rs index 3c0209ed..74e164f7 100644 --- a/net/aws/src/aws_transcriber/imp.rs +++ b/net/aws/src/aws_transcriber/imp.rs @@ -956,10 +956,10 @@ impl Transcriber { "Failed to build HTTP request URI: {}", err ); - return error_msg!( + error_msg!( gst::CoreError::Failed, ["Failed to build HTTP request URI: {}", err] - ); + ) })?; let mut request = http::Request::builder() .uri(transcribe_uri)