Skip to content

Conversation

@jnywong
Copy link
Contributor

@jnywong jnywong commented Dec 5, 2025

This PR adds a button to copy to clipboard the error log from the terminal output.

nbgitpuller-copy-error.mp4

Closes 2i2c-org/infrastructure#7083

More specific and user-friendly error responses for the top 3 failure modes to follow in a separate PR (as part of 2i2c-org/infrastructure#7085), which will rely less on the terminal window/traceback logs.

@jnywong
Copy link
Contributor Author

jnywong commented Dec 5, 2025

Cc @balajialg

@balajialg
Copy link

@jnywong That's great, Thank you!

const button = this.copyError;
button.onclick = async () => {
try {
await navigator.clipboard.writeText(errorText);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about what other thing would be useful, can you also copy the nbgitpuller URL itself? that contains important and helpful info about the repo and branch that I think help a lot. But let's just copy the url - base_url (so just /git-sync?query-params) so we don't automatically include the username here, as that could be PII.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Redesign nbgitpuller error handling response for link-consumers

3 participants