mirror of https://github.com/YosysHQ/icestorm.git
icemulti: Refuse to pack empty image
This commit is contained in:
parent
e9e49bb5db
commit
ca90cc78e1
|
|
@ -109,6 +109,9 @@ size_t Image::size()
|
|||
ifs.seekg (0, ifs.beg);
|
||||
if (ifs.fail())
|
||||
error("can't seek on input image `%s': %s\n", filename, strerror(errno));
|
||||
|
||||
if (length == 0)
|
||||
error("input image `%s' doesn't contain any data\n", filename);
|
||||
return length;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue