Skip to content

Commit 099c920

Browse files
committed
Next.
1 parent a3c34d3 commit 099c920

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/basic_fun.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8609,8 +8609,7 @@ namespace lib {
86098609
return locale;
86108610
}
86118611
catch (const std::exception& ex) {
8612-
//e->Throw("locale_get: " + string(ex.what()));
8613-
std::cerr << "Error in locale_get: " << ex.what() << std::endl;
8612+
e->Throw("Unexpected error in locale_get(): " + string(ex.what()));
86148613
return nullptr;
86158614
}
86168615
}

testsuite/test_byte_conversion.pro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,19 @@ for jj=32765L, 32770 do begin
112112
input_as_long=LONG(input)
113113
result_as_long=BYTE(input_as_long)
114114
if ARRAY_EQUAL(expected, result_as_long) NE 1 then begin
115-
ERRORS_ADD, nb_errors, 'input as Long for : '+STRING(input)
115+
ERRORS_ADD, nb_errors, 'input as Long for : '+STRING(input)+', result as long : '+STRING(result_as_long)
116116
endif
117117
;;
118118
;; this one does fail in GDL now
119119
input_as_float=FLOAT(input)
120120
result_as_float=BYTE(input_as_float)
121121
if ARRAY_EQUAL(expected, result_as_float) NE 1 then begin
122-
ERRORS_ADD, nb_errors, 'input as Long for : '+STRING(input)
122+
ERRORS_ADD, nb_errors, 'input as Long for : '+STRING(input)+', result as float : '+STRING(result_as_float)
123123
endif
124124
;;
125-
;if KEYWORD_SET(debug) then begin
125+
if KEYWORD_SET(debug) then begin
126126
print, format='(A7, 4i7)', 'loop : ', input, expected, result_as_long, result_as_float
127-
;endif
127+
endif
128128
endfor
129129
;
130130
; ----- final ----

0 commit comments

Comments
 (0)