Skip to content

Commit

Permalink
argh
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Apr 29, 2024
1 parent af40322 commit 3ba9598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labapp/app/markdown/lb.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ Create a new origin pool for the Azure cloud app. Reuse your load balancer.
const prettyJson = JSON.stringify(response.data.data, null, 4);
resultDiv.innerHTML = `<pre class="alert alert-success"><code>${prettyJson}</code></pre>`;
} else {
resultDiv.innerHTML = `<div class="alert alert-danger"><b>Request Failed</b></div>`;
const errJson = JSON.stringify(response.data.error, null, 4);
resultDiv.innerHTML = `<div class="alert alert-danger"><b>Request Failed:</b>&nbsp;&nbsp;<code>${errJson}</code></div>`;
}
resultDiv.scrollIntoView({ behavior: 'smooth', block: 'end' }); // Smooth scroll to the resultDiv
} catch (error) {
Expand Down

0 comments on commit 3ba9598

Please sign in to comment.