Public bug reported:

When you see errors like:

[WAR] 9c (lib/errors.php:536) [ParseError]: syntax error, unexpected 'parent' 
(T_STRING), expecting function (T_FUNCTION)
 Call stack (most recent first):
   * exception(object(ParseError)) at Unknown:0
 
It is not obvious to where the problem is - especially if you are 
cherry-picking in a bunch of patches and so are not familiar with the code

With PHP Exception class there are some bits we can harness to help up
https://www.php.net/manual/en/class.exception.php

The getFile() and getLine() methods will be useful

** Affects: mahara
     Importance: Wishlist
     Assignee: Robert Lyon (robertl-9)
         Status: In Progress

** Changed in: mahara
   Importance: Undecided => Wishlist

** Changed in: mahara
       Status: New => In Progress

** Changed in: mahara
     Assignee: (unassigned) => Robert Lyon (robertl-9)

** Changed in: mahara
    Milestone: None => 20.04.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1855771

Title:
  Allow non-mahara exceptions to show a bit more detail

Status in Mahara:
  In Progress

Bug description:
  When you see errors like:

  [WAR] 9c (lib/errors.php:536) [ParseError]: syntax error, unexpected 'parent' 
(T_STRING), expecting function (T_FUNCTION)
   Call stack (most recent first):
     * exception(object(ParseError)) at Unknown:0
   
  It is not obvious to where the problem is - especially if you are 
cherry-picking in a bunch of patches and so are not familiar with the code

  With PHP Exception class there are some bits we can harness to help up
  https://www.php.net/manual/en/class.exception.php

  The getFile() and getLine() methods will be useful

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1855771/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to