mozart/mozart2

System errors could be more verbose

layus opened this issue · 1 comments

For example, when fopen fails to find the file to open it could report the filename together with the "File not found" message.
Just an idea...

This seems implemented in Mozart 1 by showing the calling statement, including its arguments:

%*********************** error in OS module *********************
%**
%** Operating system error
%**
%** System call:  chdir
%** Error number: 2
%** Description:  No such file or directory
%** In statement: {<P/1 OS.chDir> [110 111 116 69 120 105 115 116]}
%**
%** Call Stack:
%** procedure in file "./testSystem.oz", line 1, column 0, PC = 10639132
%**--------------------------------------------------------------

But having the UTF8 representation of the path would probably be a lot more useful.