summaryrefslogtreecommitdiff
path: root/macros/GeneralFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'macros/GeneralFunctions')
-rw-r--r--macros/GeneralFunctions/SCI2COpenFileRead.sci2
-rw-r--r--macros/GeneralFunctions/SCI2Ccopyfile.sci2
-rw-r--r--macros/GeneralFunctions/SCI2Cfileexist.sci2
3 files changed, 3 insertions, 3 deletions
diff --git a/macros/GeneralFunctions/SCI2COpenFileRead.sci b/macros/GeneralFunctions/SCI2COpenFileRead.sci
index 1132a507..fec1090b 100644
--- a/macros/GeneralFunctions/SCI2COpenFileRead.sci
+++ b/macros/GeneralFunctions/SCI2COpenFileRead.sci
@@ -24,7 +24,7 @@ SCI2CNInArgCheck(argn(2),1,1);
// --- Open the .sci file (read only). ---
[fidnumber,fiderror] = mopen(filename,'r');
if (fiderror < 0)
- SCI2Cerror(['Cannot open (in read mode): '+filename]);
+ error(9999, 'Cannot open (in read mode): '+filename);
end
endfunction
diff --git a/macros/GeneralFunctions/SCI2Ccopyfile.sci b/macros/GeneralFunctions/SCI2Ccopyfile.sci
index 40d43f40..7c459b56 100644
--- a/macros/GeneralFunctions/SCI2Ccopyfile.sci
+++ b/macros/GeneralFunctions/SCI2Ccopyfile.sci
@@ -43,7 +43,7 @@ elseif (CopyMode == 'overwrite')
PrintStringInfo(' ', OutFileName, 'file', 'y'); // Cannot use scilab copyfile when the directory is empty!.
copyfile(InFileName,OutFileName);
else
- SCI2Cerror('Unknown CopyMode: ""'+CopyMode+'""');
+ error(9999, 'Unknown CopyMode: ""'+CopyMode+'""');
end
endfunction
diff --git a/macros/GeneralFunctions/SCI2Cfileexist.sci b/macros/GeneralFunctions/SCI2Cfileexist.sci
index d01a283d..d3122054 100644
--- a/macros/GeneralFunctions/SCI2Cfileexist.sci
+++ b/macros/GeneralFunctions/SCI2Cfileexist.sci
@@ -32,7 +32,7 @@ if (size(allfiles,1) == 0)
elseif (size(allfiles,1) == 1)
ExistTest = %T;
else
- SCI2Cerror('Very Strange! Found more than one file with the same name.');
+ error(9999, 'Very Strange! Found more than one file with the same name.');
end
endfunction