npm cmd bug fixes
parent
708a526a46
commit
c10ec03ae6
|
@ -19,7 +19,7 @@ export default class NPM extends Command {
|
||||||
|
|
||||||
const res = await axios.get(`https://registry.npmjs.com/${args[0]}`, { validateStatus: (_) => true });
|
const res = await axios.get(`https://registry.npmjs.com/${args[0]}`, { validateStatus: (_) => true });
|
||||||
|
|
||||||
if (res.status === 404) this.error(message.channel, 'Could not find the library, try something else.');
|
if (res.status === 404) return this.error(message.channel, 'Could not find the library, try something else.');
|
||||||
|
|
||||||
const { data } = res;
|
const { data } = res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue