diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-15 17:58:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 17:58:20 +0200 |
commit | 6596f00ae177d21edf33e0c2718c5df5c61e5772 (patch) | |
tree | 7a41a91c9aa229959027d1b6bb389fbbf98a327e /icetime | |
parent | 5c24da3d685f34548c5a6064c2dc3ec97062d62d (diff) | |
parent | b1d0af7edd485cf25159da602969468f1d3df500 (diff) | |
download | icestorm-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.
Diffstat (limited to 'icetime')
-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); } |