baja-lite 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sql.js +15 -3
package/package.json
CHANGED
package/sql.js
CHANGED
|
@@ -1916,7 +1916,11 @@ function P(skipConn = false) {
|
|
|
1916
1916
|
resolve(result);
|
|
1917
1917
|
}
|
|
1918
1918
|
catch (error) {
|
|
1919
|
-
|
|
1919
|
+
let args = '';
|
|
1920
|
+
if (args.length > 0 && args[0].params) {
|
|
1921
|
+
args = JSON.stringify(args[0].params);
|
|
1922
|
+
}
|
|
1923
|
+
console.error(`${option.sqlId ?? option.tableName} service ${propertyKey} have an error:${error}, it's argumens: ${args}`);
|
|
1920
1924
|
reject(error);
|
|
1921
1925
|
}
|
|
1922
1926
|
finally {
|
|
@@ -1946,7 +1950,11 @@ function P(skipConn = false) {
|
|
|
1946
1950
|
resolve(result);
|
|
1947
1951
|
}
|
|
1948
1952
|
catch (error) {
|
|
1949
|
-
|
|
1953
|
+
let args = '';
|
|
1954
|
+
if (args.length > 0 && args[0].params) {
|
|
1955
|
+
args = JSON.stringify(args[0].params);
|
|
1956
|
+
}
|
|
1957
|
+
console.error(`${option.sqlId ?? option.tableName} service ${propertyKey} have an error:${error}, it's argumens: ${args}`);
|
|
1950
1958
|
reject(error);
|
|
1951
1959
|
}
|
|
1952
1960
|
finally {
|
|
@@ -1976,7 +1984,11 @@ function P(skipConn = false) {
|
|
|
1976
1984
|
resolve(result);
|
|
1977
1985
|
}
|
|
1978
1986
|
catch (error) {
|
|
1979
|
-
|
|
1987
|
+
let args = '';
|
|
1988
|
+
if (args.length > 0 && args[0].params) {
|
|
1989
|
+
args = JSON.stringify(args[0].params);
|
|
1990
|
+
}
|
|
1991
|
+
console.error(`${option.sqlId ?? option.tableName} service ${propertyKey} have an error:${error}, it's argumens: ${args}`);
|
|
1980
1992
|
reject(error);
|
|
1981
1993
|
}
|
|
1982
1994
|
finally {
|