logs: on the server, use template literals when possible

It's just synctactic sugar, but it is always better than executing string
concatenations in one's mind.

Do not do this with files in src/static, because we want to keep IE 11
compatibility.
This commit is contained in:
muxator 2018-08-27 01:29:37 +02:00
parent 0e972aaecf
commit 27b3b0ecd2
5 changed files with 15 additions and 15 deletions

View file

@ -52,7 +52,7 @@ if(os.type().indexOf("Windows") > -1)
abiword.on('exit', function (code)
{
if(code != 0) {
return callback("Abiword died with exit code " + code);
return callback(`Abiword died with exit code ${code}`);
}
if(stdoutBuffer != "")
@ -91,7 +91,7 @@ else
abiword.on('exit', function (code)
{
spawnAbiword();
stdoutCallback("Abiword died with exit code " + code);
stdoutCallback(`Abiword died with exit code ${code}`);
});
//delegate the processing of stdout to a other function