An error has happened during application run error in Magento2

Error : An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.

Solution :
open the .htaccess from the root and comment out the first line: SetEnv MAGE_MODE developer