Skip to content

Commit 9f3dcaf

Browse files
committed
fix: update error message
1 parent aea56c1 commit 9f3dcaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/repl/lib/syntax_highlighter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ setNonEnumerableReadOnly( SyntaxHighlighter.prototype, 'addTheme', function addT
210210
*/
211211
setNonEnumerableReadOnly( SyntaxHighlighter.prototype, 'renameTheme', function renameTheme( oldName, newName ) {
212212
if ( oldName === DEFAULT_THEME ) {
213-
throw new Error( format( 'invalid argument. First argument must be not be the default theme name. Value: `%s`.', oldName ) );
213+
throw new Error( format( 'invalid argument. First argument must not be the default theme name. Value: `%s`.', oldName ) );
214214
}
215215
if ( !hasOwnProp( this._themes, oldName ) ) {
216216
throw new Error( format( 'invalid argument. First argument must be an existing theme name. Value: `%s`.', oldName ) );

0 commit comments

Comments
 (0)