Skip to content

Commit 1a18720

Browse files
committed
Adding error about unknown methods
1 parent f3d9e40 commit 1a18720

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/stashcp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def doStashCpSingle(sourceFile, destination, methods, debug=False):
161161
if download_http(sourceFile, destination, debug, payload):
162162
success = True
163163
break
164+
else:
165+
logging.error("Unknown transfer method: %s", method)
164166

165167
end1 = int(time.time()*1000)
166168
payload['start1']=start1

0 commit comments

Comments
 (0)