Skip to content

Commit

Permalink
Update console warning texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Tsukanov committed Aug 9, 2023
1 parent e5ff33a commit 66952b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console-warnings.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 66952b1

Please sign in to comment.