mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Improve missing placeholder warning message (#22630)
* Improve missing placeholder warning message * stringify
This commit is contained in:
@@ -167,7 +167,7 @@ export default class TextComponent extends TitledComponent<azdata.TextComponentP
|
||||
for (let i: number = 0; i < links.length; i++) {
|
||||
const placeholderIndex = text.indexOf(`{${i}}`);
|
||||
if (placeholderIndex < 0) {
|
||||
this.logService.warn(`Could not find placeholder text {${i}} in text ${this.value}`);
|
||||
this.logService.warn(`Could not find placeholder text {${i}} in text '${this.value}'. Link: ${JSON.stringify(links[i])}`);
|
||||
// Just continue on so we at least show the rest of the text if just one was missed or something
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ export class InfoBox extends Disposable implements IThemable {
|
||||
for (let i = 0; i < this._links.length; i++) {
|
||||
const placeholderIndex = text.indexOf(`{${i}}`);
|
||||
if (placeholderIndex < 0) {
|
||||
this._logService.warn(`Could not find placeholder text {${i}} in text ${text}`);
|
||||
this._logService.warn(`Could not find placeholder text {${i}} in text '${text}'. Link: ${JSON.stringify(this._links[i])}`);
|
||||
// Just continue on so we at least show the rest of the text if just one was missed or something
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user