Skip to content

Commit 2514921

Browse files
Improve error message
1 parent 99d8944 commit 2514921

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/napi4.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ static int findNapiClass(pNexusFile pFile, int groupRef, NXname nxclass)
578578
/* create and configure the group */
579579
iNew = Vattach (pFile->iVID, -1, "w");
580580
if (iNew < 0) {
581-
NXReportError( "ERROR: HDF could not create Vgroup");
581+
sprintf (pBuffer, "ERROR: HDF could not create Vgroup %s, class %s",
582+
name, nxclass);
583+
NXReportError( pBuffer);
582584
return NX_ERROR;
583585
}
584586
Vsetname (iNew, name);

0 commit comments

Comments
 (0)