diff --git a/scripts/zmfilter.pl.z b/scripts/zmfilter.pl.z index 60a9f121b..a08ab1e1e 100755 --- a/scripts/zmfilter.pl.z +++ b/scripts/zmfilter.pl.z @@ -199,7 +199,7 @@ my $last_action = 0; my $size = 28; # We only need the first 28 bytes really for the last event count my $key = hex(ZM_SHM_KEY)|$monitor; my $shmid = shmget( $key, $size, 0 ); -die( "Can't get shared memory id: $!" ) if ( !defined($shmid) ); +die( "Can't get shared memory id '$key': $!\n" ) if ( !defined($shmid) ); while( 1 ) { diff --git a/scripts/zmx10.pl.z b/scripts/zmx10.pl.z index 315193392..71438598b 100755 --- a/scripts/zmx10.pl.z +++ b/scripts/zmx10.pl.z @@ -451,7 +451,7 @@ sub loadTasks $monitor->{ShmId} = shmget( $monitor->{ShmKey}, $size, 0 ); if ( !defined($monitor->{ShmId}) ) { - print( "Can't get shared memory id: $!\n" ); + print( "Can't get shared memory id '$monitor->{ShmKey}': $!\n" ); next; }