1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-20 09:19:27 +02:00
This commit is contained in:
Anton Titovets
2025-04-04 09:40:42 +03:00
parent 87daa57fc7
commit fc98b860b0
2 changed files with 24 additions and 9 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
"MAIN ---"
linux-vdso.so.1 (0x00007ffc9fb72000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4f57c7f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4f57a5f000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4f57688000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4f57484000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4f58001000)
linux-vdso.so.1 (0x00007ffd88b21000)
libm.so.6 => /lib64/libm.so.6 (0x00007f7738893000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7738673000)
libc.so.6 => /lib64/libc.so.6 (0x00007f773829c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7738098000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7738c15000)
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.3.4
+18 -3
View File
@@ -94,10 +94,25 @@ impl AddIn {
self.connection = Some(conn);
r#"{"result": true}"#.to_string()
}
Err(e) => json!({
Err(e) => {
let detailed_error = match e {
rusqlite::Error::SqliteFailure(err, msg) => {
format!(
"SQLite error: code={:?}, message='{}', details={:?}",
err.code,
err.extended_code,
msg
)
}
_ => e.to_string(),
};
json!({
"result": false,
"error": e.to_string()
}).to_string()
"error": detailed_error
}).to_string()
}
}
}