Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ function IOView({ run }: { run: RunSummary }) {
>
{run.error.code}
</span>
<span
className="px-1.5 py-0.5 rounded text-[10px] font-mono"
style={{ background: "color-mix(in srgb, var(--error) 20%, var(--bg-secondary))" }}
>
{run.error.category}
</span>
</div>
<div className="p-4 text-xs leading-normal" style={{ background: "var(--bg-secondary)" }}>
<div className="font-semibold mb-2" style={{ color: "var(--text-primary)" }}>
Expand Down
1 change: 1 addition & 0 deletions src/uipath/dev/server/frontend/src/types/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export interface RunError {
code: string;
title: string;
detail: string;
category: string;
}

export interface InterruptEvent {
Expand Down
3 changes: 3 additions & 0 deletions src/uipath/dev/server/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def serialize_run(run: ExecutionRun) -> dict[str, Any]:
"code": run.error.code,
"title": run.error.title,
"detail": run.error.detail,
"category": run.error.category.value
if hasattr(run.error.category, "value")
else str(run.error.category),
}
if run.error
else None
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/uipath/dev/server/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UiPath Developer Console</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<script type="module" crossorigin src="/assets/index-D9R_e2zf.js"></script>
<script type="module" crossorigin src="/assets/index-B6o1WEr7.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BDna691u.css">
</head>
<body>
Expand Down
10 changes: 8 additions & 2 deletions src/uipath/dev/services/run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
UiPathDebugProtocol,
UiPathDebugRuntime,
)
from uipath.runtime.errors import UiPathErrorContract, UiPathRuntimeError
from uipath.runtime.errors import (
UiPathBaseRuntimeError,
UiPathErrorContract,
)
from uipath.runtime.events import UiPathRuntimeStateEvent
from uipath.runtime.resumable.trigger import UiPathResumeTrigger

Expand Down Expand Up @@ -259,6 +262,9 @@ async def execute(self, run: ExecutionRun) -> None:
"code": err.code if err else "Unknown",
"title": err.title if err else "Unknown error",
"detail": err.detail if err else "",
"category": err.category.value
if err and hasattr(err.category, "value")
else "Unknown",
},
)
run.states.append(error_state)
Expand All @@ -285,7 +291,7 @@ async def execute(self, run: ExecutionRun) -> None:
self._add_info_log(run, "✅ Execution completed successfully")
run.end_time = datetime.now()

except UiPathRuntimeError as e:
except UiPathBaseRuntimeError as e:
self._add_error_log(run)
run.status = "failed"
run.end_time = datetime.now()
Expand Down