npm cmd bug fixes
parent
5d77817a72
commit
8f06ad41e1
|
@ -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