diff --git a/components/dashboard/src/components/ErrorMessage.tsx b/components/dashboard/src/components/ErrorMessage.tsx
index 2d4cac289f37a5..9d1fd3337eeac8 100644
--- a/components/dashboard/src/components/ErrorMessage.tsx
+++ b/components/dashboard/src/components/ErrorMessage.tsx
@@ -6,17 +6,15 @@
import FeedbackComponent from "../feedback-form/FeedbackComponent";
import { isGitpodIo } from "../utils";
+import Alert from "./Alert";
function ErrorMessage(props: { imgSrc: string; imgAlt?: string; message: string }) {
return (
<>
-
-
-

-
-
+
{isGitpodIo() && (
-1) {
+ //!this.licenseEvaluator.hasEnoughSeats(userCount)) {
const msg = `Maximum number of users permitted by the license exceeded`;
throw AuthException.create("Cannot sign up", msg, { userCount, params });
}
diff --git a/components/server/src/auth/generic-auth-provider.ts b/components/server/src/auth/generic-auth-provider.ts
index 069e6b5eb6d2e1..8645d04748cc25 100644
--- a/components/server/src/auth/generic-auth-provider.ts
+++ b/components/server/src/auth/generic-auth-provider.ts
@@ -423,7 +423,7 @@ export class GenericAuthProvider implements AuthProvider {
let message = "Authorization failed. Please try again.";
if (AuthException.is(err)) {
- message = `Login was interrupted: ${err.message}`;
+ return this.sendCompletionRedirectWithError(response, { error: err.message });
}
if (this.isOAuthError(err)) {
message = "OAuth Error. Please try again."; // this is a 5xx response from authorization service