X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2c9922047eb2831310f0f893039d62db924ed9c9..7711f3fc00259e55f630cfe6104eff3083dc9d77:/sbr/folder_read.c diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 5c52abde..73ffe431 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -165,7 +165,15 @@ folder_read (char *name, int lockflag) /* * Read and initialize the sequence information. */ - seq_read (mp, lockflag); + if (seq_read (mp, lockflag) == NOTOK) { + char seqfile[PATH_MAX]; + + /* Failed to lock sequence file. */ + snprintf (seqfile, sizeof(seqfile), "%s/%s", mp->foldpath, mh_seq); + advise (seqfile, "failed to lock"); + + return NULL; + } return mp; }