Skip to content

Commit 78351e8

Browse files
committed
Consistent formatting, link to issues
1 parent 909e508 commit 78351e8

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

stan/math/mix/functor/laplace_marginal_density.hpp

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ inline void set_zero_adjoint(Output&& output) {
314314
static_assert(
315315
sizeof(std::decay_t<output_i_t>*) == 0,
316316
"INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
317-
"not able to deduce the actions needed for the given type.");
317+
"not able to deduce the actions needed for the given type. "
318+
"This is an internal error, please report it: "
319+
"https://github.com/stan-dev/math/issues");
318320
}
319321
},
320322
std::forward<Output>(output));
@@ -359,7 +361,9 @@ inline void collect_adjoints(Output& output, Input&& input) {
359361
static_assert(
360362
sizeof(std::decay_t<output_i_t>*) == 0,
361363
"INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
362-
"not able to deduce the actions needed for the given type.");
364+
"not able to deduce the actions needed for the given type. "
365+
"This is an internal error, please report it: "
366+
"https://github.com/stan-dev/math/issues");
363367
}
364368
},
365369
std::forward<Output>(output), std::forward<Input>(input));
@@ -813,7 +817,9 @@ inline void collect_adjoints(Output&& output, Input&& input) {
813817
static_assert(
814818
sizeof(std::decay_t<output_i_t>*) == 0,
815819
"INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
816-
"not able to deduce the actions needed for the given type.");
820+
"not able to deduce the actions needed for the given type. "
821+
"This is an internal error, please report it: "
822+
"https://github.com/stan-dev/math/issues");
817823
}
818824
},
819825
std::forward<Output>(output), std::forward<Input>(input));
@@ -863,7 +869,9 @@ inline void copy_compute_s2(Output&& output, Input&& input) {
863869
static_assert(
864870
sizeof(std::decay_t<output_i_t>*) == 0,
865871
"INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
866-
"not able to deduce the actions needed for the given type.");
872+
"not able to deduce the actions needed for the given type. "
873+
"This is an internal error, please report it: "
874+
"https://github.com/stan-dev/math/issues");
867875
}
868876
},
869877
std::forward<Output>(output), std::forward<Input>(input));
@@ -920,11 +928,11 @@ template <typename Output, typename Input>
920928
inline void collect_adjoints(Output&& output, const vari* ret, Input&& input) {
921929
if constexpr (is_tuple_v<Output>) {
922930
static_assert(sizeof(std::decay_t<Output>*) == 0,
923-
"INTERNAL ERROR:(laplace_marginal_lpdf)"
931+
"INTERNAL ERROR:(laplace_marginal_lpdf) "
924932
"Accumulate Adjoints called on a tuple, but tuples cannot be "
925-
"on the reverse mode stack!"
926-
"This is an internal error, please report it to the stan "
927-
"github as an issue.");
933+
"on the reverse mode stack! "
934+
"This is an internal error, please report it: "
935+
"https://github.com/stan-dev/math/issues");
928936
} else if constexpr (is_std_vector_v<Output>) {
929937
if constexpr (!is_var_v<value_type_t<Output>>) {
930938
const auto output_size = output.size();

stan/math/prim/fun/promote_scalar.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ inline constexpr auto promote_scalar(UnPromotedTypes&& x) {
4545
return PromotionScalars(std::forward<UnPromotedTypes>(x));
4646
} else {
4747
static_assert(sizeof(std::decay_t<UnPromotedTypes>*) == 0,
48-
"promote_scalar: Unrecognized type for promotion. "
49-
"This is an internal error, please report it to the stan "
50-
"github as an issue.");
48+
"INTERNAL ERROR:(promote_scalar) "
49+
"Unrecognized type for promotion. "
50+
"This is an internal error, please report it: "
51+
"https://github.com/stan-dev/math/issues");
5152
}
5253
}
5354

test/unit/math/laplace/laplace_utility.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ inline void print_adjoint(Output&& output) {
252252
} else {
253253
static_assert(sizeof(Output*) == 0,
254254
"INTERNAL ERROR:(laplace_marginal_lpdf) print_adjoint was "
255-
"not able to deduce the actiopns needed for the given type.");
255+
"not able to deduce the actiopns needed for the given type. "
256+
"This is an internal error, please report it: "
257+
"https://github.com/stan-dev/math/issues");
256258
}
257259
}
258260

0 commit comments

Comments
 (0)