Skip to content

Commit e016acc

Browse files
authored
Merge pull request #44 from TheAngularity/no_event_error
Shorter error output if no event log
2 parents 65c8dd7 + 90d5dfa commit e016acc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/flightlog_index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ function FlightLogIndex(logData) {
193193
// Did we not find any events in this log?
194194
if (intraIndex.minTime === false) {
195195
if (sawEndMarker) {
196-
intraIndex.error = "Logging was paused, no data recorded";
196+
intraIndex.error = "Logging paused, no data";
197197
} else {
198-
intraIndex.error = "Log is truncated, contains no data";
198+
intraIndex.error = "Log truncated, no data";
199199
}
200200
}
201201

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function BlackboxLogViewer() {
305305
error = flightLog.getLogError(index);
306306

307307
if (error) {
308-
logLabel = "Error: " + error;
308+
logLabel = error;
309309
} else {
310310
logLabel = formatTime(flightLog.getMinTime(index) / 1000, false)
311311
+ " - " + formatTime(flightLog.getMaxTime(index) / 1000 , false)

0 commit comments

Comments
 (0)