diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-12-08 22:28:45 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-12-08 22:28:45 -0500 |
commit | b9f38fcde7aa46a47381689b246babf46e98ecef (patch) | |
tree | a2d0c8325db68ec079c8b5da1f727b05128cbb4e | |
parent | 616fdd38b607eed61e1f98c5c0f9da8389ce0fe5 (diff) | |
download | GradeBook-b9f38fcde7aa46a47381689b246babf46e98ecef.tar.gz GradeBook-b9f38fcde7aa46a47381689b246babf46e98ecef.zip |
improved error messages
-rwxr-xr-x | GradeBook_lib.tcl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index f5c1a36..999bfea 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -558,6 +558,10 @@ proc ModifyNumberOfLowestGradesToDropGradesCategory {db category num} { dbg "Category: $category already does not exists in the GradesCategoryTable, creating it" msg_level_info AddGradesCategory db $category } + if { ![doesColumnExists NumberToDrop GradesCategoryTable] } { + dbg "Do not have column NumberToDrop in the table GradesCategoryTable may be you are using older version of database format" msg_level_info ModifyNumberOfLowestGradesToDropGradesCategory + return + } UpdateColumnWithValueInTableWhere GradesCategoryTable NumberToDrop $num CategoryName $category } @@ -678,8 +682,8 @@ proc EditGradesCategories { db permission_list user } { } errStat ] puts "</table>" if { $err } { - htmlErrorMsg $errStat - dbg "the following error happen: $errStat" msg_level_critical + htmlErrorMsg $errStat EditGradesCategories + dbg "the following error happen: $errStat" msg_level_critical EditGradesCategories } puts {<input type="hidden" name="action" value="update_grades_categories"/>} puts {<input type="submit" name="subaction" value="Submit" />} |