Skip to content

Commit

Permalink
closes again1 #849-give-more-useful-error-message-when-sc-file-format…
Browse files Browse the repository at this point in the history
…-is-incorrect
  • Loading branch information
pranav-gupta1 committed Jul 7, 2023
1 parent f1c584f commit 5e0d8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/reducers/load_dna_file_reducer.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'dart:convert';
import 'dart:html';
//import 'dart:html';

import 'package:built_collection/built_collection.dart';
import 'package:scadnano/src/dna_file_type.dart';
Expand Down Expand Up @@ -39,7 +39,7 @@ The design has the following problem:
${error.cause}
${util.stack_trace_message_bug_report(stack_trace)}''';
} catch (error, stack_trace) {
window.alert('I was unable to process that file. Only scadnano .sc files are supported for opening via the menu File-->Open or dragging onto the browser. If you are trying to import a cadnano file (ending. in .json), use the menu option File-->Import cadnano v2. Here is the full error message:');
//window.alert('I was unable to process that file. Only scadnano .sc files are supported for opening via the menu File-->Open or dragging onto the browser. If you are trying to import a cadnano file (ending. in .json), use the menu option File-->Import cadnano v2. Here is the full error message:');
error_message = "I encountered an error while reading the file ${action.filename}:"
'\n\n$hline'
'\n* error type: ${error.runtimeType}'
Expand Down

0 comments on commit 5e0d8eb

Please sign in to comment.