Skip to content

Commit 9f97371

Browse files
committed
chore: reference correct source on HTTP errors
1 parent ef0eddc commit 9f97371

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

worker/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ async fn linkup_session_handler(
208208
Ok(conf) => conf,
209209
Err(e) => {
210210
return HttpError::new(
211-
format!("Failed to parse server config: {} - local server", e),
211+
format!("Failed to parse server config: {} - Worker", e),
212212
StatusCode::BAD_REQUEST,
213213
)
214214
.into_response()
@@ -245,7 +245,7 @@ async fn linkup_preview_handler(
245245
Ok(conf) => conf,
246246
Err(e) => {
247247
return HttpError::new(
248-
format!("Failed to parse server config: {} - local server", e),
248+
format!("Failed to parse server config: {} - Worker", e),
249249
StatusCode::BAD_REQUEST,
250250
)
251251
.into_response()
@@ -296,8 +296,7 @@ async fn linkup_request_handler(
296296
Ok(session) => session,
297297
Err(_) => {
298298
return HttpError::new(
299-
"Linkup was unable to determine the session origin of the request.
300-
Make sure your request includes a valid session ID in the referer or tracestate headers. - Local Server".to_string(),
299+
"Linkup was unable to determine the session origin of the request.\nMake sure your request includes a valid session ID in the referer or tracestate headers. - Worker".to_string(),
301300
StatusCode::UNPROCESSABLE_ENTITY,
302301
)
303302
.into_response()
@@ -308,9 +307,7 @@ async fn linkup_request_handler(
308307
Some(result) => result,
309308
None => {
310309
return HttpError::new(
311-
"The request belonged to a session, but there was no target for the request.
312-
Check your routing rules in the linkup config for a match. - Local Server"
313-
.to_string(),
310+
"The request belonged to a session, but there was no target for the request.\nCheck your routing rules in the linkup config for a match. - Worker".to_string(),
314311
StatusCode::NOT_FOUND,
315312
)
316313
.into_response()

0 commit comments

Comments
 (0)