@@ -3160,8 +3160,9 @@ public virtual Operand VisitMD5_fun(mathParser.MD5_funContext context)
31603160 }
31613161 var t = Hash . GetMd5String ( encoding . GetBytes ( args [ 0 ] . TextValue ) ) ;
31623162 return Operand . Create ( t ) ;
3163- } catch ( Exception ) { }
3164- return Operand . Error ( "Function MD5 is error!" ) ;
3163+ } catch ( Exception ex ) {
3164+ return Operand . Error ( "Function MD5 is error!" + ex . Message ) ;
3165+ }
31653166 }
31663167 public virtual Operand VisitSHA1_fun ( mathParser . SHA1_funContext context )
31673168 {
@@ -3177,9 +3178,9 @@ public virtual Operand VisitSHA1_fun(mathParser.SHA1_funContext context)
31773178 }
31783179 var t = Hash . GetSha1String ( encoding . GetBytes ( args [ 0 ] . TextValue ) ) ;
31793180 return Operand . Create ( t ) ;
3180- } catch ( Exception ) {
3181+ } catch ( Exception ex ) {
3182+ return Operand . Error ( "Function SHA1 is error!" + ex . Message ) ;
31813183 }
3182- return Operand . Error ( "Function SHA1 is error!" ) ;
31833184 }
31843185 public virtual Operand VisitSHA256_fun ( mathParser . SHA256_funContext context )
31853186 {
@@ -3195,8 +3196,9 @@ public virtual Operand VisitSHA256_fun(mathParser.SHA256_funContext context)
31953196 }
31963197 var t = Hash . GetSha256String ( encoding . GetBytes ( args [ 0 ] . TextValue ) ) ;
31973198 return Operand . Create ( t ) ;
3198- } catch ( Exception ) { }
3199- return Operand . Error ( "Function SHA256 is error!" ) ;
3199+ } catch ( Exception ex ) {
3200+ return Operand . Error ( "Function SHA256 is error!" + ex . Message ) ;
3201+ }
32003202 }
32013203 public virtual Operand VisitSHA512_fun ( mathParser . SHA512_funContext context )
32023204 {
@@ -3212,9 +3214,9 @@ public virtual Operand VisitSHA512_fun(mathParser.SHA512_funContext context)
32123214 }
32133215 var t = Hash . GetSha512String ( encoding . GetBytes ( args [ 0 ] . TextValue ) ) ;
32143216 return Operand . Create ( t ) ;
3215- } catch ( Exception ) {
3217+ } catch ( Exception ex ) {
3218+ return Operand . Error ( "Function SHA512 is error!" + ex . Message ) ;
32163219 }
3217- return Operand . Error ( "Function SHA512 is error!" ) ;
32183220 }
32193221
32203222 public virtual Operand VisitCRC32_fun ( mathParser . CRC32_funContext context )
@@ -3230,8 +3232,9 @@ public virtual Operand VisitCRC32_fun(mathParser.CRC32_funContext context)
32303232 }
32313233 var t = Hash . GetCrc32String ( encoding . GetBytes ( args [ 0 ] . TextValue ) ) ;
32323234 return Operand . Create ( t ) ;
3233- } catch ( Exception ) { }
3234- return Operand . Error ( "Function CRC32 is error!" ) ;
3235+ } catch ( Exception ex ) {
3236+ return Operand . Error ( "Function CRC32 is error!" + ex . Message ) ;
3237+ }
32353238 }
32363239 public virtual Operand VisitHMACMD5_fun ( mathParser . HMACMD5_funContext context )
32373240 {
@@ -3246,8 +3249,9 @@ public virtual Operand VisitHMACMD5_fun(mathParser.HMACMD5_funContext context)
32463249 }
32473250 var t = Hash . GetHmacMd5String ( encoding . GetBytes ( args [ 0 ] . TextValue ) , args [ 1 ] . TextValue ) ;
32483251 return Operand . Create ( t ) ;
3249- } catch ( Exception ) { }
3250- return Operand . Error ( "Function HMACMD5 is error!" ) ;
3252+ } catch ( Exception ex ) {
3253+ return Operand . Error ( "Function HMACMD5 is error!" + ex . Message ) ;
3254+ }
32513255 }
32523256 public virtual Operand VisitHMACSHA1_fun ( mathParser . HMACSHA1_funContext context )
32533257 {
@@ -3262,8 +3266,9 @@ public virtual Operand VisitHMACSHA1_fun(mathParser.HMACSHA1_funContext context)
32623266 }
32633267 var t = Hash . GetHmacSha1String ( encoding . GetBytes ( args [ 0 ] . TextValue ) , args [ 1 ] . TextValue ) ;
32643268 return Operand . Create ( t ) ;
3265- } catch ( Exception ) { }
3266- return Operand . Error ( "Function HMACSHA1 is error!" ) ;
3269+ } catch ( Exception ex ) {
3270+ return Operand . Error ( "Function HMACSHA1 is error!" + ex . Message ) ;
3271+ }
32673272 }
32683273 public virtual Operand VisitHMACSHA256_fun ( mathParser . HMACSHA256_funContext context )
32693274 {
@@ -3278,8 +3283,9 @@ public virtual Operand VisitHMACSHA256_fun(mathParser.HMACSHA256_funContext cont
32783283 }
32793284 var t = Hash . GetHmacSha256String ( encoding . GetBytes ( args [ 0 ] . TextValue ) , args [ 1 ] . TextValue ) ;
32803285 return Operand . Create ( t ) ;
3281- } catch ( Exception ) { }
3282- return Operand . Error ( "Function HMACSHA256 is error!" ) ;
3286+ } catch ( Exception ex ) {
3287+ return Operand . Error ( "Function HMACSHA256 is error!" + ex . Message ) ;
3288+ }
32833289 }
32843290 public virtual Operand VisitHMACSHA512_fun ( mathParser . HMACSHA512_funContext context )
32853291 {
@@ -3294,8 +3300,9 @@ public virtual Operand VisitHMACSHA512_fun(mathParser.HMACSHA512_funContext cont
32943300 }
32953301 var t = Hash . GetHmacSha512String ( encoding . GetBytes ( args [ 0 ] . TextValue ) , args [ 1 ] . TextValue ) ;
32963302 return Operand . Create ( t ) ;
3297- } catch ( Exception ) { }
3298- return Operand . Error ( "Function HMACSHA512 is error!" ) ;
3303+ } catch ( Exception ex ) {
3304+ return Operand . Error ( "Function HMACSHA512 is error!" + ex . Message ) ;
3305+ }
32993306 }
33003307 public virtual Operand VisitTRIMSTART_fun ( mathParser . TRIMSTART_funContext context )
33013308 {
0 commit comments