mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-27 12:56:00 +03:00
custom errors
This commit is contained in:
parent
c0566b7654
commit
70a563ed53
4
dist/crypto-pro.js
vendored
4
dist/crypto-pro.js
vendored
@ -4116,8 +4116,8 @@ exports._extractMeaningfulErrorMessage = function (error) {
|
||||
if (!containsRussianLetters) {
|
||||
return null;
|
||||
}
|
||||
var searchResult = errorContainer.message.match(/^(.*?)(?:(?:\.?\s?\(?0x)|(?:\.?$))/);
|
||||
return searchResult ? searchResult[1] : null;
|
||||
var searchResult = errorContainer.message.match(/^(.*?)(?:(?:\.?\s?\(?(0x[0-9a-zA-Z]{1,8})\))|(?:\.?$))/);
|
||||
return (searchResult ? searchResult[1] + (searchResult[2] ? '. Код ошибки: ' + searchResult[2] : '') : null);
|
||||
};
|
||||
|
||||
|
||||
|
2
dist/crypto-pro.js.map
vendored
2
dist/crypto-pro.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/crypto-pro.min.js
vendored
2
dist/crypto-pro.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/crypto-pro.min.js.map
vendored
2
dist/crypto-pro.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -3714,8 +3714,8 @@ exports._extractMeaningfulErrorMessage = (error) => {
|
||||
if (!containsRussianLetters) {
|
||||
return null;
|
||||
}
|
||||
const searchResult = errorContainer.message.match(/^(.*?)(?:(?:\.?\s?\(?0x)|(?:\.?$))/);
|
||||
return searchResult ? searchResult[1] : null;
|
||||
const searchResult = errorContainer.message.match(/^(.*?)(?:(?:\.?\s?\(?(0x[0-9a-zA-Z]{1,8})\))|(?:\.?$))/);
|
||||
return (searchResult ? searchResult[1] + (searchResult[2] ? '. Код ошибки: ' + searchResult[2] : '') : null);
|
||||
};
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@ export const _extractMeaningfulErrorMessage = (error: Error): string | null => {
|
||||
return null;
|
||||
}
|
||||
|
||||
const searchResult = errorContainer.message.match(/^(.*?)(?:(?:\.?\s?\(?0x)|(?:\.?$))/);
|
||||
const searchResult = errorContainer.message.match(/^(.*?)(?:(?:\.?\s?\(?(0x[0-9a-zA-Z]{1,8})\))|(?:\.?$))/);
|
||||
|
||||
return searchResult ? searchResult[1] : null;
|
||||
return (searchResult ? searchResult[1] + (searchResult[2] ? '. Код ошибки: ' + searchResult[2] : '') : null);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user