diff --git a/lib/profile.js b/lib/profile.js index c532ab3351367..3dd5ca01eda9d 100644 --- a/lib/profile.js +++ b/lib/profile.js @@ -68,7 +68,7 @@ const profile = async (args) => { case 'set': return set(opts) default: - throw new Error('Unknown profile command: ' + args[0]) + throw new Error('Unknown profile command: ' + subcmd) } }