diff options
-rw-r--r-- | icetime/icetime.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/icetime/icetime.cc b/icetime/icetime.cc index 4a82842..d2363a3 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -343,12 +343,14 @@ void read_chipdb() homedir += getenv("HOME"); #endif snprintf(buffer, 1024, "%s%s/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", homedir.c_str(), PREFIX+1, config_device.c_str()); - } else + } else { snprintf(buffer, 1024, PREFIX "/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", config_device.c_str()); + } FILE *fdb = fopen(buffer, "r"); if (fdb == nullptr) { perror("Can't open chipdb file"); + fprintf(stderr, " %s\n", buffer); exit(1); } |