Spaces:
Paused
Paused
Commit
•
35db0ae
1
Parent(s):
4b5e7b7
more error tracing
Browse files- src/colmap.mts +5 -0
src/colmap.mts
CHANGED
@@ -72,6 +72,11 @@ export const runColmap = (options: ColmapOptions): Promise<string> => {
|
|
72 |
|
73 |
exec(command, (error, stdout, stderr) => {
|
74 |
if (error) {
|
|
|
|
|
|
|
|
|
|
|
75 |
reject(stderr);
|
76 |
} else {
|
77 |
resolve(stdout);
|
|
|
72 |
|
73 |
exec(command, (error, stdout, stderr) => {
|
74 |
if (error) {
|
75 |
+
console.error('Error running colmap command:', command);
|
76 |
+
console.error('Error message:', error.message);
|
77 |
+
console.error('Error stack:', error.stack);
|
78 |
+
console.log("stdout:", stdout);
|
79 |
+
console.log("stderr:", stderr);
|
80 |
reject(stderr);
|
81 |
} else {
|
82 |
resolve(stdout);
|