You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by de...@apache.org on 2016/04/06 01:37:14 UTC

incubator-systemml git commit: [SYSTEMML-607] Fix error message when namespace not found

Repository: incubator-systemml
Updated Branches:
  refs/heads/master 328b644cb -> e24406c03


[SYSTEMML-607] Fix error message when namespace not found

Closes #101.


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/e24406c0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/e24406c0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/e24406c0

Branch: refs/heads/master
Commit: e24406c038d9b32567456c5cacbe4abb03f8f72d
Parents: 328b644
Author: Glenn Weidner <gw...@us.ibm.com>
Authored: Tue Apr 5 16:34:56 2016 -0700
Committer: Deron Eriksson <de...@us.ibm.com>
Committed: Tue Apr 5 16:34:56 2016 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/sysml/parser/DMLProgram.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/e24406c0/src/main/java/org/apache/sysml/parser/DMLProgram.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/parser/DMLProgram.java b/src/main/java/org/apache/sysml/parser/DMLProgram.java
index 834b8b5..63b4861 100644
--- a/src/main/java/org/apache/sysml/parser/DMLProgram.java
+++ b/src/main/java/org/apache/sysml/parser/DMLProgram.java
@@ -95,8 +95,8 @@ public class DMLProgram
 	public HashMap<String, FunctionStatementBlock> getFunctionStatementBlocks(String namespaceKey) throws LanguageException{
 		DMLProgram namespaceProgram = this.getNamespaces().get(namespaceKey);
 		if (namespaceProgram == null){
-			LOG.error("ERROR: namespace " + namespaceKey + " is underfined");
-			throw new LanguageException("ERROR: namespace " + namespaceKey + " is underfined");
+			LOG.error("ERROR: namespace " + namespaceKey + " is undefined");
+			throw new LanguageException("ERROR: namespace " + namespaceKey + " is undefined");
 		}
 		// for the namespace DMLProgram, get the functions in its current namespace
 		return namespaceProgram._functionBlocks;
@@ -569,7 +569,7 @@ public class DMLProgram
 	 * are cleaned after execution anyway.
 	 * (3) As an alternative to doing rule 2, we could also check for existing objects in createvar and function invocation
 	 * (or generic at program block level) and remove objects of previous iterations accordingly (but objects of last iteration
-	 * would still require seperate cleanup).
+	 * would still require separate cleanup).
 	 * 
 	 * TODO: MB: external function invocations should become hops/lops as well (see instruction gen in DMLTranslator), 
 	 * (currently not possible at Hops/Lops level due the requirement of multiple outputs for functions)