js: Use templates for non-translatable strings
This reverts commit 9d941f8202
and replaces all additional
instances of .format() that have been added since.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>
This commit is contained in:

committed by
Marge Bot

parent
29dfde5a4a
commit
a1dd1b25d8
@ -572,14 +572,16 @@ var ShellUserVerifier = class {
|
||||
if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
|
||||
return;
|
||||
if (!this.serviceIsForeground(serviceName)) {
|
||||
logError(e, 'Failed to start %s for %s'.format(serviceName, this._userName));
|
||||
logError(e,
|
||||
`Failed to start ${serviceName} for ${this._userName}`);
|
||||
this._hold.release();
|
||||
return;
|
||||
}
|
||||
this._reportInitError(this._userName
|
||||
? 'Failed to start %s verification for user'.format(serviceName)
|
||||
: 'Failed to start %s verification'.format(serviceName), e,
|
||||
serviceName);
|
||||
this._reportInitError(
|
||||
this._userName
|
||||
? `Failed to start ${serviceName} verification for user`
|
||||
: `Failed to start ${serviceName} verification`,
|
||||
e, serviceName);
|
||||
return;
|
||||
}
|
||||
this._hold.release();
|
||||
|
Reference in New Issue
Block a user