aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-15 17:58:20 +0200
committerGitHub <noreply@github.com>2018-06-15 17:58:20 +0200
commit6596f00ae177d21edf33e0c2718c5df5c61e5772 (patch)
tree7a41a91c9aa229959027d1b6bb389fbbf98a327e
parent5c24da3d685f34548c5a6064c2dc3ec97062d62d (diff)
parentb1d0af7edd485cf25159da602969468f1d3df500 (diff)
downloadicestorm-6596f00ae177d21edf33e0c2718c5df5c61e5772.tar.gz
icestorm-6596f00ae177d21edf33e0c2718c5df5c61e5772.tar.bz2
icestorm-6596f00ae177d21edf33e0c2718c5df5c61e5772.zip
Merge pull request #155 from mithro/icetime-error
icetime: Output where the chipdb should be found.
-rw-r--r--icetime/icetime.cc4
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);
}