Skip to content

Commit 9ed7cb7

Browse files
committed
More helpful error messages
1 parent f84941e commit 9ed7cb7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

desktop/backend.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ int fuji_connect_run_script(int devnum, const char *filename) {
139139
int rc = fudge_usb_connect(r, devnum);
140140
if (rc) return rc;
141141

142+
app_print("Connected to a Fuji camera, running %s", filename);
143+
142144
rc = cam_run_lua_script_async(text);
143145
if (rc) {
144146
printf("%s\n", cam_lua_get_error());
@@ -251,6 +253,7 @@ int fudge_download_backup(int devnum, const char *output) {
251253

252254
rc = fujiusb_download_backup(r, f);
253255
if (rc) {
256+
app_print("Failed to download backup: %d", rc);
254257
goto exit;
255258
}
256259

@@ -296,4 +299,4 @@ int fudge_restore_backup(int devnum, const char *output) {
296299

297300
fclose(f);
298301
return rc;
299-
}
302+
}

0 commit comments

Comments
 (0)