summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index c205d837..e413b9f3 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -331,8 +331,9 @@ jtag_device_t* jtag_get_device(int num)
device = device->next;
i++;
}
-
- return NULL;
+
+ ERROR("jtag device number %d not defined", num);
+ exit(-1);
}
void* cmd_queue_alloc(size_t size)