Code cleanup: Uncaught Exception

XMLWordPrintable

    • Type: Task
    • Resolution: Done
    • Priority: Should have
    • 1.53
    • 2
    • Code Refactoring
    • Sprint #87

      A function can throw an exception which is not catched when the function is called. Errors should be handled by the application to avoid undefined states, crashes, or exposure of sensitive information.

      Repo: Master-theme
      tests/bootstrap.php Line: 14

      throw new Exception("Could not find {$_tests_dir}/includes/functions.php, have you run bin/install-wp-tests.sh ?");
      

      footer.php Line: 14

      throw new \Exception('Timber context not set in footer.');
      

            Assignee:
            Sagar Deshmukh
            Reporter:
            Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: