Change General_Error.OK to nil

This commit is contained in:
Jeroen van Rijn
2021-05-03 15:38:43 +02:00
parent ca0f36be42
commit 9a39ce6b75
8 changed files with 53 additions and 54 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ main :: proc() {
if len(args) < 2 {
stderr("No input file specified.\n");
err := gzip.load(TEST, &buf);
if err != E_General.OK {
if err != nil {
stdout("Displaying test vector: ");
stdout(bytes.buffer_to_string(&buf));
stdout("\n");
@@ -54,7 +54,7 @@ main :: proc() {
} else {
err = gzip.load(file, &buf);
}
if err != gzip.E_General.OK {
if err != nil {
if err != E_General.File_Not_Found {
stderr("File not found: ");
stderr(file);