use a generic error message
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c
index 07cee8f..5ba4589 100644
--- a/e2fsprogs/chattr.c
+++ b/e2fsprogs/chattr.c
@@ -169,7 +169,7 @@
 	   (de->d_name[1] == '.' && de->d_name[2] == '\0'))) {
 		char *path;
 		if (asprintf(&path, "%s/%s", dir_name, de->d_name) == -1)
-			bb_error_msg_and_die("asprintf failed");
+			bb_error_msg_and_die(bb_msg_memory_exhausted);
 		change_attributes(path);
 		free(path);
 	}
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c
index d389663..62b9535 100644
--- a/e2fsprogs/lsattr.c
+++ b/e2fsprogs/lsattr.c
@@ -108,7 +108,7 @@
 	else
 		i = asprintf(&path, "%s/%s", dir_name, de->d_name);
 	if (i == -1)
-		bb_perror_msg_and_die("asprintf failed");
+		bb_error_msg_and_die(bb_msg_memory_exhausted);
 
 	if (LSTAT(path, &st) == -1)
 		bb_perror_msg(path);