Skip to content

Commit c10f765

Browse files
committed
Settings return null if none found
1 parent 9a2adda commit c10f765

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/ExpMngr/Scripts/Settings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public object this[string key]
6363
}
6464
else
6565
{
66-
throw new System.Exception(string.Format("There is no avaiable setting \"{0}\" for this trial, block or experiment.", key));
66+
Debug.LogError(string.Format("There is no avaiable setting \"{0}\" for this trial, block or experiment. Returning null.", key));
67+
return null;
6768
}
6869
}
6970
}

0 commit comments

Comments
 (0)