mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-25 03:02:18 +01:00
chore(connect): improve error message
This commit is contained in:
@@ -32,7 +32,7 @@ const parse = (versionArr: VersionArray) => ({
|
||||
const split = (version: string) => {
|
||||
const arr = version.split('.').map(v => Number(v));
|
||||
if (!isVersionArray(arr)) {
|
||||
throw new Error('version string is in wrong format');
|
||||
throw new Error(`version string is in wrong format: ${version}`);
|
||||
}
|
||||
return arr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user