File tree Expand file tree Collapse file tree 5 files changed +2330
-1926
lines changed Expand file tree Collapse file tree 5 files changed +2330
-1926
lines changed Original file line number Diff line number Diff line change 11module . exports . printErr = ( err ) => {
22
3- console . error ( 'Error:' )
3+ console . error ( 'Error:' , err )
44
55 if ( 'ENOENT' === err . code && 'open' !== err . syscall ) {
66 console . error ( 'Please install graphicsmagick:' )
@@ -12,5 +12,5 @@ module.exports.printErr = (err) => {
1212 console . log ( 'Please check your uri / network connection' )
1313 }
1414
15- console . dir ( err . message )
15+ process . exit ( 1 )
1616}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = (config) => {
77 const gm = require ( 'gm' )
88 const pictureTube = require ( 'picture-tube' )
99
10- const isUrl = ( str ) => str . match ( / ^ h t t p | 0 \. 0 | 1 ..\. | l o c a l h o s t / )
10+ const isUrl = ( str ) => str . match ( / ^ ( h t t p | 0 \. 0 | 1 ..\. | l o c a l h o s t ) / )
1111
1212 const pipeIn = ( isUrl ( argv . _ [ 0 ] ) ?
1313 require ( 'request-promise' ) ( argv . _ [ 0 ] ) :
You can’t perform that action at this time.
0 commit comments