File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,18 @@ class PkgPyFuncs {
107107
108108 runProcess ( cmd , args ) {
109109 const ret = ChildProcess . spawnSync ( cmd , args )
110+
110111 if ( ret . error ) {
111112 throw new this . serverless . classes . Error ( `[serverless-package-python-functions] ${ ret . error . message } ` )
112113 }
113114
114115 if ( ret . stderr . length != 0 ) {
115- this . log ( ret . stderr . toString ( ) )
116+ const errorText = ret . stderr . toString ( ) . trim ( )
117+ if ( errorText . toLowerCase ( ) . search ( 'error' ) != - 1 ) {
118+ this . log ( errorText )
119+ console . log ( errorText )
120+ this . error ( errorText )
121+ }
116122 }
117123
118124 const out = ret . stdout . toString ( )
@@ -167,6 +173,8 @@ class PkgPyFuncs {
167173 // Copy includes
168174 let includes = target . includes || [ ]
169175 if ( this . globalIncludes ) {
176+ console . log ( 'includes' )
177+ console . log ( includes )
170178 includes = _ . concat ( includes , this . globalIncludes )
171179 }
172180 _ . forEach ( includes , ( item ) => { Fse . copySync ( item , buildPath ) } )
You can’t perform that action at this time.
0 commit comments