mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-26 00:01:37 +00:00
add more details for unreachable
This commit is contained in:
@@ -927,7 +927,7 @@ pub async fn get_content(job: &QueuedJob, db: &Pool<Postgres>) -> Result<String,
|
||||
.fetch_optional(db)
|
||||
.await?
|
||||
.ok_or_else(|| Error::InternalErr(format!("expected content")))?,
|
||||
_ => unreachable!()
|
||||
_ => unreachable!("get_content called for non-script job kind: {:#?}", job.job_kind),
|
||||
};
|
||||
Ok(query)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user