##// END OF EJS Templates
svn: don't print exceptions in case of safe calls
milka -
r914:2f4cea33 default
parent child Browse files
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 cmd = ' '.join(cmd) # human friendly CMD
502 tb_err = ("Couldn't run svn command (%s).\n"
503 "Original error was:%s\n"
504 "Call options:%s\n"
505 % (cmd, err, _opts))
506 log.exception(tb_err)
507 if safe_call:
501 if safe_call:
508 return '', err
502 return '', err
509 else:
503 else:
504 cmd = ' '.join(cmd) # human friendly CMD
505 tb_err = ("Couldn't run svn command (%s).\n"
506 "Original error was:%s\n"
507 "Call options:%s\n"
508 % (cmd, err, _opts))
509 log.exception(tb_err)
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