Skip to content

Commit

Permalink
Add more diagnostic information for #17
Browse files Browse the repository at this point in the history
  • Loading branch information
bozaro committed Aug 18, 2016
1 parent f1baaf8 commit e6b371e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/git/lfs/migrate/Main.java
Expand Up @@ -21,6 +21,7 @@
import ru.bozaro.gitlfs.client.auth.AuthProvider;
import ru.bozaro.gitlfs.client.auth.BasicAuthProvider;
import ru.bozaro.gitlfs.client.exceptions.ForbiddenException;
import ru.bozaro.gitlfs.client.exceptions.RequestException;
import ru.bozaro.gitlfs.common.data.*;
import ru.bozaro.gitlfs.common.data.Error;

Expand Down Expand Up @@ -74,7 +75,15 @@ public static void main(@NotNull String[] args) throws Exception {
}
return;
}
processRepository(cmd.src, cmd.dst, cmd.cache, client, cmd.writeThreads, cmd.uploadThreads, cmd.globs.toArray(new String[cmd.globs.size()]));
try {
processRepository(cmd.src, cmd.dst, cmd.cache, client, cmd.writeThreads, cmd.uploadThreads, cmd.globs.toArray(new String[cmd.globs.size()]));
} catch (ExecutionException e) {
if (e.getCause() instanceof RequestException) {
final RequestException cause = (RequestException) e.getCause();
log.error("HTTP request failure: {}", cause.getRequestInfo());
}
throw e;
}
log.info("Convert time: {}", System.currentTimeMillis() - time);
}

Expand Down

0 comments on commit e6b371e

Please sign in to comment.