Skip to content

Commit 4bba493

Browse files
committed
style: align error message wording in ndarray/ndarraylike2scalar
Use the standard "First argument must be an ndarray" wording shared by sibling top-level ndarray wrappers (rot90, rot180, rotl90, to-rot90, to-rotr90, flatten, unflatten).
1 parent 2e347f3 commit 4bba493

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/ndarray/ndarraylike2scalar/lib

lib/node_modules/@stdlib/ndarray/ndarraylike2scalar/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var format = require( '@stdlib/string/format' );
4545
*/
4646
function ndarraylike2scalar( x ) {
4747
if ( !isndarrayLike( x ) ) {
48-
throw new TypeError( format( 'invalid argument. Must provide an ndarray. Value: `%s`.', x ) );
48+
throw new TypeError( format( 'invalid argument. First argument must be an ndarray. Value: `%s`.', x ) );
4949
}
5050
return base( x );
5151
}

0 commit comments

Comments
 (0)