Scilab Function
Last update : 00/00/0000

edit_error - opens in SciPad the source of the last recorded error

### Calling Sequence

  `answ = edit_error(clearerror)`

### Parameters

- `clearerror` : boolean - if true the error condition is cleared, if false it is kept (as in `lasterror`)
- `answ` : a string stating which source file is open (or why no file was open)

### Description

This function opens in SciPad the source of the function which caused the last recorded error, and highlights the offending line.

This function works only for functions which are defined in libraries, i.e. not for internal functions, nor with functions defined online, nor loaded with individual `getf` or `getd`. This is since Scilab presently retains only the path to libraries and not to individual function sources.

Correspondance between the function name foo and function filename foo.sci is tacitly assumed.

### Examples

        acosh abc
        edit_error

### See Also

`scipad`, `lasterror`, `errclear`,

### Authors

  Enrico Segre