mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
change exception message
This commit is contained in:
@@ -17,7 +17,7 @@ export class SerializeAddon implements ITerminalAddon {
|
||||
public serialize(rows?: number): string {
|
||||
// TODO: Add frontground/background color support later
|
||||
if (!this._terminal) {
|
||||
throw new Error('No terminal found!');
|
||||
throw new Error('Cannot use addon until it has been loaded');
|
||||
}
|
||||
const buffer = this._terminal.buffer;
|
||||
const length = Math.max(0, Math.min((rows === undefined ? buffer.length : rows), buffer.length));
|
||||
|
||||
Reference in New Issue
Block a user