#21 Switch-branch: give more info about error
Merged 8 years ago by pbabinca. Opened 8 years ago by araszka.
araszka/rpkg bz1261397  into  master

file modified
+2 -2
@@ -1658,9 +1658,9 @@ 

                  self.repo.git.checkout(branch)

                  # The above should have no output, but stash it anyway

                  self.log.info("Switched to branch '%s'" % branch)

-             except:

+             except Exception as err:

                  # This needs to be finer grained I think...

-                 raise rpkgError('Could not check out %s' % branch)

+                 raise rpkgError('Could not check out %s\n%s' % (branch, err.stderr))

          return

  

      def file_exists(self, pkg_name, filename, checksum):

no initial comment
Metadata