branch: externals/el-job commit d07ed2da8a533b5e41a0c95dc00985cd6b9fb670 Author: Martin Edström <meedst...@runbox.eu> Commit: Martin Edström <meedst...@runbox.eu>
Style (easier to read) --- el-job.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/el-job.el b/el-job.el index 02226d9085..5d6006a7a8 100644 --- a/el-job.el +++ b/el-job.el @@ -578,10 +578,10 @@ should trigger `el-job--handle-output'." .past-elapsed)) busy-bufs) ;; Sanity check - (unless (length< splits (1+ (length .ready))) - (if (or .busy (null .ready) (null splits)) - (error "el-job: Items split in %d lists, but only %d ready processes (and %d busy)" - (length splits) (length .ready) (length .busy)) + (when (length> splits (length .ready)) + (if (or (null .ready) (null splits)) + (error "el-job: Items split in %d lists, but only %d ready processes " + (length splits) (length .ready)) (warn "el-job: Items split in %d lists, but only %d ready processes. %s" (length splits) (length .ready) "Falling back to use 1 process")