add more details for unreachable

This commit is contained in:
Ruben Fiszel
2023-08-20 21:04:46 +02:00
parent f153220832
commit e86bf467c8
+1 -1
View File
@@ -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)
}