Fix 'vsprintf(): Too few arguments' in ProcessController::showAction()

Before, we called printf twice because BpConfig::addError()
already makes use of printf. The exception only occured for
nodes that have a percent sign (%) in their name.

fixes #234
This commit is contained in:
Ravi Kumar Kempapura Srinivasa 2020-02-25 14:47:43 +01:00 committed by Johannes Meyer
parent 3ffbce0709
commit 1278480b6e

View file

@ -110,7 +110,7 @@ class ProcessController extends Controller
$missing = array_slice($missing, 0, 10);
$missing[] = '...';
}
$bp->addError(sprintf('There are %d missing nodes: %s', $count, implode(', ', $missing)));
$bp->addError('There are %d missing nodes: %s', $count, implode(', ', $missing));
}
$this->content()->add($this->showHints($bp));
$this->content()->add($this->showWarnings($bp));