Skip to content

Commit 52cd15c

Browse files
committed
Improved error messages WIP #1085
1 parent 094764d commit 52cd15c

File tree

12 files changed

+162
-1566
lines changed

12 files changed

+162
-1566
lines changed

.dagger/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ VOLUME /atomic-storage
575575

576576
@func()
577577
/** Creates Docker images for all supported architectures */
578-
async createDockerImages(@argument() tag: string = "latest"): Promise<void> {
578+
async createDockerImages(@argument() tag: string = "develop"): Promise<void> {
579579
const targets = Object.keys(TARGET_IMAGE_MAP);
580580

581581
// Build one variant first.

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ jobs:
4040
with:
4141
name: build-artifacts
4242
path: ./artifact
43+
- name: Publish Docker images
44+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
45+
uses: docker/build-push-action@v4
46+
with:
47+
context: .
48+
push: true
49+
tags: ${{ steps.meta.outputs.tags }}

browser/data-browser/src/views/CrashPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function CrashPage({
2828
<StyledMain>
2929
<ContainerWide resource={resource?.subject}>
3030
<Column>
31-
{children ? children : <ErrorBlock error={error} showTrace />}
31+
{children ? children : <ErrorBlock error={error} showTrace={true} />}
3232
<Row>
3333
{clearError && <Button onClick={clearError}>Clear error</Button>}
3434
<Button

browser/data-browser/src/views/ErrorPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function ErrorPage({ resource }: ResourcePageProps): JSX.Element {
2727
<h1>Unauthorized</h1>
2828
{agent ? (
2929
<>
30-
<ErrorBlock error={resource.error!} />
30+
<ErrorBlock error={resource.error!} showTrace={true} />
3131
<span>
3232
<Button
3333
onClick={() =>

browser/e2e/tests/search.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import {
1616
test.describe('search', async () => {
1717
test.beforeEach(before);
1818

19-
test('text search', async ({ page }) => {
19+
test('text search', async ({ page }) => {
20+
await page.click(setitings);
2021
await addressBar(page).fill('welcome');
2122
await expect(page.locator('text=Welcome to your')).toBeVisible();
2223
await page.keyboard.press('Enter');

browser/lib/src/resource.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,9 @@ export class Resource<C extends OptionalClass = any> {
711711

712712
return createdCommit.id as string;
713713
} catch (e) {
714-
// Logic for handling error if the previousCommit is wrong.
715-
// Is not stable enough, and maybe not required at the time.
716714
if (e.message.includes('previousCommit')) {
715+
// Logic for handling error if the previousCommit is wrong.
716+
// Is not stable enough, and maybe not required at the time.
717717
console.warn('previousCommit missing or mismatch, retrying...');
718718
// We try again, but first we fetch the latest version of the resource to get its `lastCommit`
719719
const resourceFetched = await this.store.fetchResourceFromServer(

0 commit comments

Comments
 (0)