Merge pull request #305 from tomverbeure/icebram_error

Exit with error when no RAM contents were replaced.
This commit is contained in:
myrtle 2022-12-27 20:44:03 +01:00 committed by GitHub
commit 45f5e5f388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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