changeset 74:e95eaf2f7fe0

Added missing newlines to error messages related to opening files
author lost@l-w.ca
date Tue, 12 Apr 2011 17:58:13 -0600
parents 1f77ae5c3590
children 3d50022e16e7
files lwasm/input.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/input.c	Tue Apr 12 17:56:51 2011 -0600
+++ b/lwasm/input.c	Tue Apr 12 17:58:13 2011 -0600
@@ -183,7 +183,7 @@
 			debug_message(as, 1, "Opening (abs) %s", s);
 			if (!IS -> data && !IGNOREERROR)
 			{
-				lw_error("Cannot open file '%s': %s", s, strerror(errno));
+				lw_error("Cannot open file '%s': %s\n", s, strerror(errno));
 			}
 			input_pushpath(as, s);
 			return;
@@ -225,7 +225,7 @@
 			input_pushpath(as, s);
 			return;
 		}
-		lw_error("Cannot open include file '%s': %s", s, strerror(errno));
+		lw_error("Cannot open include file '%s': %s\n", s, strerror(errno));
 		break;
 		
 	case input_type_file:
@@ -234,13 +234,13 @@
 
 		if (!IS -> data)
 		{
-			lw_error("Cannot open file '%s': %s", s, strerror(errno));
+			lw_error("Cannot open file '%s': %s\n", s, strerror(errno));
 		}
 		input_pushpath(as, s);
 		return;
 	}
 
-	lw_error("Cannot figure out how to open '%s'.", t -> filespec);
+	lw_error("Cannot figure out how to open '%s'.\n", t -> filespec);
 }
 
 FILE *input_open_standalone(asmstate_t *as, char *s)
@@ -423,7 +423,7 @@
 		}
 	
 	default:
-		lw_error("Problem reading from unknown input type");
+		lw_error("Problem reading from unknown input type\n");
 		return NULL;
 	}
 }