diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
index a1fe4862e5..3c57899420 100644
--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
@@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
if (targetPkg.hasOwnProperty('depsAdded') &&
targetPkg.depsAdded.length > 0) {
- msg += "added " + (targetPkg.depsAdded.length + 1);
+ msg += "added ";
+ msg += "" + (targetPkg.depsAdded.length + 1) + "";
msg += " packages to " + ctx.recipe.name + ": ";
msg += "" + targetPkg.name + " and its dependencies";
@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
(targetPkg.depsAdded.length + 1) + " packages added");
} else {
- msg += ' ' + targetPkg.name + '';
+ msg += "added 1";
+ msg += " package to " + ctx.recipe.name + ": ";
+ msg += "" + targetPkg.name + "";
inlineNotify.text("1 package added");
}