Show More
@@ -498,15 +498,15 b' class SvnRemote(RemoteBase):' | |||||
498 |
|
498 | |||
499 | return ''.join(p), ''.join(p.error) |
|
499 | return ''.join(p), ''.join(p.error) | |
500 | except (EnvironmentError, OSError) as err: |
|
500 | except (EnvironmentError, OSError) as err: | |
|
501 | if safe_call: | |||
|
502 | return '', err | |||
|
503 | else: | |||
501 | cmd = ' '.join(cmd) # human friendly CMD |
|
504 | cmd = ' '.join(cmd) # human friendly CMD | |
502 | tb_err = ("Couldn't run svn command (%s).\n" |
|
505 | tb_err = ("Couldn't run svn command (%s).\n" | |
503 | "Original error was:%s\n" |
|
506 | "Original error was:%s\n" | |
504 | "Call options:%s\n" |
|
507 | "Call options:%s\n" | |
505 | % (cmd, err, _opts)) |
|
508 | % (cmd, err, _opts)) | |
506 | log.exception(tb_err) |
|
509 | log.exception(tb_err) | |
507 | if safe_call: |
|
|||
508 | return '', err |
|
|||
509 | else: |
|
|||
510 | raise exceptions.VcsException()(tb_err) |
|
510 | raise exceptions.VcsException()(tb_err) | |
511 |
|
511 | |||
512 | @reraise_safe_exceptions |
|
512 | @reraise_safe_exceptions |
General Comments 0
You need to be logged in to leave comments.
Login now