Skip to content

Commit 4ab7060

Browse files
committed
improved error output
1 parent dee3a16 commit 4ab7060

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azure-sql-db-ai-samples-search",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

client/src/SearchPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const SearchPage = () => {
254254

255255
{(pageStatus == "error") && (
256256
<Text block style={{ textAlign: 'center', color: 'red', marginBottom: '20px' }}>
257-
{error[0].source}#{error[0].code}: {error[0].description}
257+
Source: "{error[0].source}" - Code: "{error[0].code}"<br/>{error[0].description}
258258
</Text>
259259
)}
260260

0 commit comments

Comments
 (0)