Skip to content

Commit bb971f7

Browse files
authored
Merge pull request #86 from application-research/feat/improve-connection-failure-message
fix: improve message on ddm connection failure
2 parents 957a5c2 + 1b29538 commit bb971f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/ddm/auth/page.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ async function auth(ctx: any, authToken: string, ddmAddress: string, setLoading:
1919
return;
2020
}
2121
} catch (e) {
22-
alert(e.toString());
22+
if (e instanceof TypeError) {
23+
alert(`Could not connect to Delta DM backend at ${ddmAddress}. Please ensure it is running and reachable on the network.`);
24+
} else {
25+
alert('Unknown error: ' + e.toString());
26+
}
2327
return;
2428
} finally {
2529
setLoading(false);

0 commit comments

Comments
 (0)