chore(util/CompatibilityUtil): correct spacing and simplify warning

This commit is contained in:
Nico Rehwaldt 2020-05-13 11:42:25 +02:00 committed by fake-join[bot]
parent f3edfd0f0d
commit c40ebf558a
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ export function wrapForCompatibility(api) {
var callback = arguments[argLen - 1];
console.warn(new Error(
'Passing callbacks to ' + api.name + ' is deprecated and will be removed in a future major release.' +
'Please switch to promises, cf. https://bpmn.io/l/moving-to-promises.html'
'Passing callbacks to ' + api.name + ' is deprecated and will be removed in a future major release. ' +
'Please switch to promises: https://bpmn.io/l/moving-to-promises.html'
));
var argsWithoutCallback = Array.prototype.slice.call(arguments, 0, -1);