X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=input.c;h=cce0d9ff916b9a159f0f3400d80bd5d96df263eb;hp=eafbd6fdb8b0ee286f3db7c299f4445e78b79287;hb=HEAD;hpb=f3e44829a2de542c5da923db51d4f4377e401369 diff --git a/input.c b/input.c index eafbd6f..cce0d9f 100644 --- a/input.c +++ b/input.c @@ -147,14 +147,18 @@ static void load_input_file_module(struct df_arg_desc *df_arg) break; push_scan_data = FALSE; buf->len = len; - if (sr_input_send(in, buf) != SR_OK) + if (sr_input_send(in, buf) != SR_OK) { + g_critical("File import failed (read)"); break; + } sdi = sr_input_dev_inst_get(in); if (!got_sdi && sdi) { /* First time we got a valid sdi. */ - if (select_channels(sdi) != SR_OK) + if (select_channels(sdi) != SR_OK) { + g_critical("File import failed (channels)"); return; + } if (sr_session_dev_add(session, sdi) != SR_OK) { g_critical("Failed to use device."); sr_session_destroy(session);