Skip to content

Commit d5a3347

Browse files
committed
log app error to see how the scrubber behaves.
1 parent 828e6dc commit d5a3347

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/server/src/workspace/gitpod-server-impl.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,13 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
15481548
throw new ApplicationError(ErrorCodes.NOT_FOUND, "Repository not found.", error.data);
15491549
}
15501550
if (UnauthorizedError.is(error)) {
1551-
throw new ApplicationError(ErrorCodes.NOT_AUTHENTICATED, "Unauthorized", error.data);
1551+
// throw new ApplicationError(ErrorCodes.NOT_AUTHENTICATED, "Unauthorized", error.data);
1552+
1553+
const appError = new ApplicationError(ErrorCodes.NOT_AUTHENTICATED, "Unauthorized", error.data);
1554+
console.error(`ORIGINAL ${JSON.stringify(error)}`);
1555+
console.error(`APPERROR ${JSON.stringify(appError)}`);
1556+
1557+
throw appError;
15521558
}
15531559
if (InvalidGitpodYMLError.is(error)) {
15541560
throw new ApplicationError(ErrorCodes.INVALID_GITPOD_YML, error.message);

0 commit comments

Comments
 (0)