Skip to content

Commit e7a8117

Browse files
committed
More error checking
1 parent b48f04c commit e7a8117

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

dev/conda/conda-build.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ export PYTHONWARNINGS="ignore::UserWarning"
165165
log "BUILD: START"
166166
print
167167
(
168+
if [[ -o e ]] {
169+
print e on
170+
} else {
171+
print e off
172+
}
173+
exit 1
168174
log "using python: " $( which python )
169175
log "using conda: " $( which conda )
170176
print
@@ -189,17 +195,17 @@ print
189195

190196
# Find the "upload" text for the PKG in the LOG,
191197
# this will give us the PKG file name
198+
PKG=""
192199
if UPLOAD=( $( grep -A 1 "anaconda upload" $LOG ) )
193200
then
194201
log "UPLOAD: ${UPLOAD:-EMPTY}"
195202
PKG=${UPLOAD[-1]}
196203
log "found PKG=${PKG:-NOT_FOUND}"
197-
else
198-
log "ERROR: did not find PKG!"
199-
log "LOG CONTENTS:"
200-
cat $LOG
201204
fi
202205

206+
if [[ $PKG == "" ]] \
207+
abort "could not find 'anaconda upload' in the log!"
208+
203209
# Print metadata about the PKG
204210
(
205211
print

0 commit comments

Comments
 (0)