diff options
author | Tom Verbeure <hombre+github.com@gmail.com> | 2022-12-27 10:43:31 -0800 |
---|---|---|
committer | Tom Verbeure <hombre+github.com@gmail.com> | 2022-12-27 10:43:31 -0800 |
commit | a4d32c985b5432b5a8a3c79b4470a0308a138d1f (patch) | |
tree | 7194a5a9f5163f581c9c4726876b9e13d55b6e22 | |
parent | a545498d6fd0a28a006976293917115037d4628c (diff) | |
download | icestorm-a4d32c985b5432b5a8a3c79b4470a0308a138d1f.tar.gz icestorm-a4d32c985b5432b5a8a3c79b4470a0308a138d1f.tar.bz2 icestorm-a4d32c985b5432b5a8a3c79b4470a0308a138d1f.zip |
Exit with error when no RAM contents were replaced.
-rw-r--r-- | icebram/icebram.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/icebram/icebram.cc b/icebram/icebram.cc index aacf00c..9d27ca6 100644 --- a/icebram/icebram.cc +++ b/icebram/icebram.cc @@ -384,6 +384,10 @@ int main(int argc, char **argv) if (verbose) fprintf(stderr, "Found and replaced %d instances of the memory.\n", max_replace_cnt); + if (max_replace_cnt == 0) { + fprintf(stderr, "No memory instances were replaced.\n"); + exit(2); + } // ------------------------------------------------------- // Write ascfile to stdout |