diff --git a/src/console-warnings.ts b/src/console-warnings.ts index 27e18ff6fb..a3a9a22936 100644 --- a/src/console-warnings.ts +++ b/src/console-warnings.ts @@ -1,10 +1,10 @@ export class ConsoleWarnings { public static disposedObjectChangedProperty(propName: string, objType: string): void { - ConsoleWarnings.warn("Attempt to set property '" + propName + "' of a disposed object '" + objType + "'"); + ConsoleWarnings.warn("An attempt to set a property \"" + propName + "\" of a disposed object \"" + objType + "\""); } public static inCorrectQuestionValue(questionName: string, val: any): void { const valStr = JSON.stringify(val, null, 3); - ConsoleWarnings.warn("Try to set incorrect value into question. Question name: '" + questionName + "', value: " + valStr); + ConsoleWarnings.warn("An attempt to assign an incorrect value" + valStr + " to the following question: \"" + questionName + "\""); } public static warn(text: string): void { // eslint-disable-next-line no-console