Mysql Server always throwing unknown error Sorry for the bad formatting since its the first time 

When i try to delete a row which has a foreign constraint, i'm expecting the Mysql server to give me the constraint key and the table to which it's related to but all i get is only this message "Unknown error 1451".

mysql server version : 5.7.26 (linux)

CREATE TABLE `detailmenu` (
  `detailmenu_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `menu_id` int(10) unsigned NOT NULL DEFAULT '0',
  `detailsubprg_id` varchar(20) DEFAULT NULL,
  `description` varchar(100) DEFAULT NULL,
  `link` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`detailsubprg_int_id`),
  KEY `FK_detailsubprgmtb_1` (`subprg_int_id`),
  CONSTRAINT `FK_detailmenu_1` FOREIGN KEY (`menu_id`) REFERENCES `menu` (`menu_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=latin1


When i try to delete a row from this table which has a constraint i expect the Mysql server to atleast give me the constraint key which is 'FK_detailmenu_1' or the child table reference but all i get is "Unknown error 1451" without any additional information. Is there any configuration issue? This issue does not come in windows machine.
I found the answer through this post MySQL 5.7 No Longer Returns Meaningful Error Messages.
On analyzing the mysql log in the path /var/log/mysqld.log. the error was decribed as [ERROR] Can't find error-message file '/usr/share/mysql/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.