Skip to content

Commit 55ea4b7

Browse files
committed
Copy additional useful info
1 parent 24cedca commit 55ea4b7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nbgitpuller/static/js/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ gs.addHandler('error', function(data) {
4949
gsv.setProgressError(true);
5050
gsv.setTerminalVisibility(true);
5151
if (data.output) {
52-
gsv.term.write(data.output);
52+
const errorText= `Repository: ${gs.repo}\nBranch: ${gs.branch}\nRedirect URL: ${gs.redirectUrl}\n\n${data.output}\n`;
53+
gsv.term.write(errorText);
54+
gsv.setContainerError(
55+
true,
56+
errorText
57+
);
5358
}
54-
gsv.setContainerError(true, data.output);
5559
});
5660
gs.start();
5761

0 commit comments

Comments
 (0)