Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ts/input/tex/ParseUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export const ParseUtil = {
}
if (match !== '') {
// @test Internal Math Error
throw new TexError('MathNotTerminated', 'Math not terminated in text box');
throw new TexError('MathNotTerminated', 'Math mode is not properly terminated');
}
}
if (k < text.length) {
Expand Down
6 changes: 3 additions & 3 deletions ts/input/tex/bussproofs/BussproofsMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ function parseFCenterLine(parser: TexParser, name: string): MmlNode {
let dollar = parser.GetNext();
if (dollar !== '$') {
throw new TexError('IllegalUseOfCommand',
'Use of %1 does not match it\'s definition.', name);
'Use of %1 does not match its definition.', name);
}
parser.i++;
let axiom = parser.GetUpTo(name, '$');
if (axiom.indexOf('\\fCenter') === -1) {
throw new TexError('IllegalUseOfCommand',
'Missing \\fCenter in %1.', name);
throw new TexError('MissingProofCommand',
'Missing %1 in %2.', '\\fCenter', name);
}
// Check for fCenter and throw error?
let [prem, conc] = axiom.split('\\fCenter');
Expand Down
4 changes: 2 additions & 2 deletions ts/input/tex/textmacros/TextMacrosMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const TextMacrosMethods = {
break;
}
}
parser.Error('MathNotTerminated', 'Math-mode is not properly terminated');
parser.Error('MathNotTerminated', 'Math mode is not properly terminated');
},

/**
Expand All @@ -104,7 +104,7 @@ export const TextMacrosMethods = {
* @param {string} c The character that called this function
*/
Misplaced(parser: TextParser, c: string) {
parser.Error('Misplaced', '\'%1\' can not be used here', c);
parser.Error('Misplaced', 'Misplaced \'%1\'', c);
},

/**
Expand Down