aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/scaling_amount_input.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/components/scaling_amount_input.tsx')
-rw-r--r--packages/instant/src/components/scaling_amount_input.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/scaling_amount_input.tsx b/packages/instant/src/components/scaling_amount_input.tsx
index f95020461..86aca5a65 100644
--- a/packages/instant/src/components/scaling_amount_input.tsx
+++ b/packages/instant/src/components/scaling_amount_input.tsx
@@ -4,7 +4,7 @@ import * as React from 'react';
import { Maybe } from '../types';
-import { MAGIC_TRIGGER_ERROR_INPUT } from '../constants';
+import { GIT_SHA, MAGIC_TRIGGER_ERROR_INPUT, MAGIC_TRIGGER_ERROR_MESSAGE, NPM_PACKAGE_VERSION } from '../constants';
import { ColorOption } from '../style/theme';
import { maybeBigNumberUtil } from '../util/maybe_big_number';
import { util } from '../util/util';
@@ -73,7 +73,7 @@ export class ScalingAmountInput extends React.Component<ScalingAmountInputProps,
}
private readonly _handleChange = (event: React.ChangeEvent<HTMLInputElement>): void => {
if (event.target.value === MAGIC_TRIGGER_ERROR_INPUT) {
- throw new Error('Triggered error');
+ throw new Error(`${MAGIC_TRIGGER_ERROR_MESSAGE} git: ${GIT_SHA}, npm: ${NPM_PACKAGE_VERSION}`);
}
const sanitizedValue = event.target.value.replace(/[^0-9.]/g, ''); // only allow numbers and "."