Skip to content

Commit

Permalink
fix: updated error msg on errors caught
Browse files Browse the repository at this point in the history
  • Loading branch information
felixindrawan committed Sep 10, 2024
1 parent 9ca7662 commit 0d273d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions VINScanner/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ SCAN_MODES.forEach((mode) =>
configureScanOrientation();
} catch (ex) {
let errMsg = ex.message || ex;
console.error(errMsg);
alert(errMsg);
console.error(`An error occured: ${errMsg}`);
alert(`An error occured: ${errMsg}`);
}
})
);
Expand Down Expand Up @@ -195,8 +195,8 @@ copyResultBtn.addEventListener("click", () => {
})
.catch((ex) => {
let errMsg = ex.message || ex;
console.error(errMsg);
alert(errMsg);
console.error(`An error occured: ${errMsg}`);
alert(`An error occured: ${errMsg}`);
});
});

Expand Down
4 changes: 2 additions & 2 deletions VINScanner/minimum-elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ <h3 id="scan-title"></h3>
cameraEnhancer.setPixelFormat(Dynamsoft.Core.EnumImagePixelFormat.IPF_ABGR_8888);
} catch (ex) {
let errMsg = ex.message || ex;
console.error(errMsg);
alert(errMsg);
console.error(`An error occured: ${errMsg}`);
alert(`An error occured: ${errMsg}`);
}
})
);
Expand Down

0 comments on commit 0d273d6

Please sign in to comment.