Skip to content

Instantly share code, notes, and snippets.

@davidalexander
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidalexander/01db2efc727c6714e70d to your computer and use it in GitHub Desktop.
Save davidalexander/01db2efc727c6714e70d to your computer and use it in GitHub Desktop.
trigger magento 500 error
<?php
// Trigger 500 response
// allows styling of "There has been an error processing your request" page
// note setIsDeveloperModes should be false to prevent xxception being thrown
throw new Exception('you shall not pass');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment