Improve error message when task is unavailable
Now that there can be so many requirements on tasks, this error message
was getting really confusing. It still could be improved if another pass
was made to see if the problem was that the task didn't exist or whether
its preconditions didn't exist.
@@ -460,7 +460,7 @@ int fwup_apply(const char *fw_filename,
fctx.task = find_task(&fctx, task_prefix);
if (fctx.task == 0)
- ERR_CLEANUP_MSG("Couldn't find applicable task '%s' in %s", task_prefix, fw_filename);
+ ERR_CLEANUP_MSG("Couldn't find applicable task '%s' in %s. If task is available, the task's requirements may not be met.", task_prefix, fw_filename);
// Compute the total progress units
OK_OR_CLEANUP(compute_progress(&fctx));
