pass error when task is nil (not solved)