Skip to content

Commit 00c235c

Browse files
committed
console detail error
1 parent 94a5146 commit 00c235c

File tree

39 files changed

+61
-56
lines changed

39 files changed

+61
-56
lines changed

foundational-api-samples/hello-world/angular/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class VideoCaptureComponent {
213213
console.log(componentDestroyedErrorMsg);
214214
} else {
215215
let errMsg = ex.message || ex;
216-
console.error(errMsg);
216+
console.error(ex);
217217
alert(errMsg);
218218
}
219219
}
@@ -320,7 +320,7 @@ export class ImageCaptureComponent {
320320
}
321321
} catch (ex: any) {
322322
let errMsg = ex.message || ex;
323-
console.error(errMsg);
323+
console.error(ex);
324324
alert(errMsg);
325325
}
326326
};

foundational-api-samples/hello-world/angular/src/app/image-capture/image-capture.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class ImageCaptureComponent {
4949
}
5050
} catch (ex: any) {
5151
let errMsg = ex.message || ex;
52-
console.error(errMsg);
52+
console.error(ex);
5353
alert(errMsg);
5454
}
5555
};

foundational-api-samples/hello-world/angular/src/app/video-capture/video-capture.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class VideoCaptureComponent {
8787
console.log(componentDestroyedErrorMsg);
8888
} else {
8989
let errMsg = ex.message || ex;
90-
console.error(errMsg);
90+
console.error(ex);
9191
alert(errMsg);
9292
}
9393
}

foundational-api-samples/hello-world/blazor/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ window.startVideoDecode = async () => {
161161
await cvRouter.startCapturing("ReadSingleBarcode");
162162
} catch (ex) {
163163
let errMsg = ex.message || ex;
164-
console.error(errMsg);
164+
console.error(ex);
165165
}
166166
}
167167

@@ -184,7 +184,7 @@ window.stopVideoDecode = async () => {
184184
resultsContainer.textContent = "";
185185
} catch (ex) {
186186
let errMsg = ex.message || ex;
187-
console.error(errMsg);
187+
console.error(ex);
188188
}
189189
}
190190
```
@@ -261,7 +261,7 @@ window.startImageDecode = async () => {
261261
}
262262
} catch (ex) {
263263
let errMsg = ex.message || ex;
264-
console.error(errMsg);
264+
console.error(ex);
265265
alert(errMsg);
266266
} finally {
267267
inputElement.value = "";

foundational-api-samples/hello-world/blazor/hello-world-blazor/BlazorApp/wwwroot/decodeImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ window.startImageDecode = async () => {
2525
}
2626
} catch (ex) {
2727
let errMsg = ex.message || ex;
28-
console.error(errMsg);
28+
console.error(ex);
2929
alert(errMsg);
3030
} finally {
3131
inputElement.value = "";

foundational-api-samples/hello-world/blazor/hello-world-blazor/BlazorApp/wwwroot/decodeVideo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ window.startVideoDecode = async () => {
4242
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
4343
} catch (ex) {
4444
let errMsg = ex.message || ex;
45-
console.error(errMsg);
45+
console.error(ex);
4646
}
4747
}
4848

@@ -65,6 +65,6 @@ window.stopVideoDecode = async () => {
6565
resultsContainer.textContent = "";
6666
} catch (ex) {
6767
let errMsg = ex.message || ex;
68-
console.error(errMsg);
68+
console.error(ex);
6969
}
7070
}

foundational-api-samples/hello-world/electron/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Dynamsoft.Core.CoreModule.loadWasm();
207207
await cvRouter.startCapturing("ReadSingleBarcode");
208208
} catch (ex) {
209209
let errMsg = ex.message || ex;
210-
console.error(errMsg);
210+
console.error(ex);
211211
alert(errMsg);
212212
}
213213
})();

foundational-api-samples/hello-world/electron/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Dynamsoft.Core.CoreModule.loadWasm();
6464
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
6565
} catch (ex) {
6666
let errMsg = ex.message || ex;
67-
console.error(errMsg);
67+
console.error(ex);
6868
alert(errMsg);
6969
}
7070
})();

foundational-api-samples/hello-world/es6.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h1>Hello World for ES6 (Decode via Camera)</h1>
8282
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
8383
} catch (ex) {
8484
let errMsg = ex.message || ex;
85-
console.error(errMsg);
85+
console.error(ex);
8686
alert(errMsg);
8787
}
8888
})();

foundational-api-samples/hello-world/hello-world.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h1>Hello World (Decode via Camera)</h1>
7878
await cvRouter.startCapturing("ReadBarcodes_SpeedFirst");
7979
} catch (ex) {
8080
let errMsg = ex.message || ex;
81-
console.error(errMsg);
81+
console.error(ex);
8282
alert(errMsg);
8383
}
8484
})();

0 commit comments

Comments
 (0)